mirror of
https://github.com/square/okhttp.git
synced 2026-01-27 04:22:07 +03:00
Fix checkstyle errors.
This commit is contained in:
@@ -43,8 +43,8 @@ import libcore.util.Charsets;
|
||||
* The default charset is US_ASCII.
|
||||
*/
|
||||
public class StrictLineReader implements Closeable {
|
||||
private static final byte CR = (byte)'\r';
|
||||
private static final byte LF = (byte)'\n';
|
||||
private static final byte CR = (byte) '\r';
|
||||
private static final byte LF = (byte) '\n';
|
||||
|
||||
private final InputStream in;
|
||||
private final Charset charset;
|
||||
@@ -112,8 +112,8 @@ public class StrictLineReader implements Closeable {
|
||||
if (capacity < 0) {
|
||||
throw new IllegalArgumentException("capacity <= 0");
|
||||
}
|
||||
if (!(charset.equals(Charsets.US_ASCII) || charset.equals(Charsets.UTF_8) ||
|
||||
charset.equals(Charsets.ISO_8859_1))) {
|
||||
if (!(charset.equals(Charsets.US_ASCII) || charset.equals(Charsets.UTF_8)
|
||||
|| charset.equals(Charsets.ISO_8859_1))) {
|
||||
throw new IllegalArgumentException("Unsupported encoding");
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package libcore.net.http;
|
||||
|
||||
import com.squareup.okhttp.OkHttpConnection;
|
||||
import com.squareup.okhttp.OkHttpsConnection;
|
||||
import java.io.BufferedInputStream;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
@@ -51,7 +51,6 @@ import javax.net.ssl.SSLPeerUnverifiedException;
|
||||
import libcore.io.Base64;
|
||||
import libcore.io.DiskLruCache;
|
||||
import libcore.io.IoUtils;
|
||||
import libcore.io.Streams;
|
||||
import libcore.io.StrictLineReader;
|
||||
import libcore.util.Charsets;
|
||||
import libcore.util.ExtendedResponseCache;
|
||||
|
||||
Reference in New Issue
Block a user