Skip to content

Commit b11a240

Browse files
authored
contentEquals does not throw NullPointerException (apache#496)
If either stream is null, contentEquals returns false
1 parent 405c34a commit b11a240

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,6 @@ public static long consume(final Reader input) throws IOException {
894894
* @param input2 the second stream
895895
* @return true if the content of the streams are equal or they both don't
896896
* exist, false otherwise
897-
* @throws NullPointerException if either input is null
898897
* @throws IOException if an I/O error occurs
899898
*/
900899
public static boolean contentEquals(final InputStream input1, final InputStream input2) throws IOException {

0 commit comments

Comments
 (0)