Skip to content

Commit 3da8a4f

Browse files
committed
refine contentEquals(InputStream, InputStream)
1 parent 3fc877b commit 3da8a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,8 @@ public static void closeQuietly(final Writer output) {
690690
closeQuietly((Closeable) output);
691691
}
692692

693+
private static final int CONTENT_EQUALS_CHAR_ARRAY_BUFFER_SIZE = 8192;
694+
693695
/**
694696
* Compares the contents of two Streams to determine if they are equal or
695697
* not.
@@ -750,8 +752,6 @@ public static boolean contentEquals(final InputStream input1, final InputStream
750752
}
751753
}
752754

753-
private static final int CONTENT_EQUALS_CHAR_ARRAY_BUFFER_SIZE = 8192;
754-
755755
/**
756756
* Compares the contents of two Readers to determine if they are equal or
757757
* not.

0 commit comments

Comments
 (0)