Skip to content

Commit

Permalink
refine contentEquals(InputStream, InputStream)
Browse files Browse the repository at this point in the history
  • Loading branch information
XenoAmess committed Jun 8, 2020
1 parent 3fc877b commit 3da8a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/apache/commons/io/IOUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ public static void closeQuietly(final Writer output) {
closeQuietly((Closeable) output);
}

private static final int CONTENT_EQUALS_CHAR_ARRAY_BUFFER_SIZE = 8192;

/**
* Compares the contents of two Streams to determine if they are equal or
* not.
Expand Down Expand Up @@ -750,8 +752,6 @@ public static boolean contentEquals(final InputStream input1, final InputStream
}
}

private static final int CONTENT_EQUALS_CHAR_ARRAY_BUFFER_SIZE = 8192;

/**
* Compares the contents of two Readers to determine if they are equal or
* not.
Expand Down

0 comments on commit 3da8a4f

Please sign in to comment.