diff --git a/third_party/disklrucache/build.gradle b/third_party/disklrucache/build.gradle index e9190b2803..bb7bea96a9 100644 --- a/third_party/disklrucache/build.gradle +++ b/third_party/disklrucache/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' checkstyle { - toolVersion = "6.6" + toolVersion = "6.19" configFile = new File(projectDir, 'checkstyle.xml') } diff --git a/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/StrictLineReader.java b/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/StrictLineReader.java index 11135db04c..e87288763b 100644 --- a/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/StrictLineReader.java +++ b/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/StrictLineReader.java @@ -68,7 +68,7 @@ class StrictLineReader implements Closeable { * @throws NullPointerException if {@code in} or {@code charset} is null. * @throws IllegalArgumentException if the specified charset is not supported. */ - public StrictLineReader(InputStream in, Charset charset) { + StrictLineReader(InputStream in, Charset charset) { this(in, 8192, charset); } @@ -83,7 +83,7 @@ public StrictLineReader(InputStream in, Charset charset) { * @throws IllegalArgumentException if {@code capacity} is negative or zero * or the specified charset is not supported. */ - public StrictLineReader(InputStream in, int capacity, Charset charset) { + StrictLineReader(InputStream in, int capacity, Charset charset) { if (in == null || charset == null) { throw new NullPointerException(); } @@ -105,6 +105,7 @@ public StrictLineReader(InputStream in, int capacity, Charset charset) { * * @throws IOException for errors when closing the underlying {@code InputStream}. */ + @Override public void close() throws IOException { synchronized (in) { if (buf != null) { @@ -122,7 +123,7 @@ public void close() throws IOException { * @throws IOException for underlying {@code InputStream} errors. * @throws EOFException for the end of source stream. */ - public String readLine() throws IOException { + String readLine() throws IOException { synchronized (in) { if (buf == null) { throw new IOException("LineReader is closed"); @@ -176,7 +177,7 @@ public String toString() { } } - public boolean hasUnterminatedLine() { + boolean hasUnterminatedLine() { return end == -1; }