Skip to content

Commit

Permalink
Update disklrucache checkstyle to 6.19
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Sep 25, 2023
1 parent bd2a519 commit fe3b912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion third_party/disklrucache/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

checkstyle {
toolVersion = "6.6"
toolVersion = "6.19"
configFile = new File(projectDir, 'checkstyle.xml')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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();
}
Expand All @@ -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) {
Expand All @@ -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");
Expand Down Expand Up @@ -176,7 +177,7 @@ public String toString() {
}
}

public boolean hasUnterminatedLine() {
boolean hasUnterminatedLine() {
return end == -1;
}

Expand Down

0 comments on commit fe3b912

Please sign in to comment.