This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new b11a2404 contentEquals does not throw NullPointerException (#496)
b11a2404 is described below

commit b11a2404e6a845a522d3248f1e228ff764a6f308
Author: sebbASF <sebb...@users.noreply.github.com>
AuthorDate: Sun Oct 8 16:51:15 2023 +0100

    contentEquals does not throw NullPointerException (#496)
    
    If either stream is null, contentEquals returns false
---
 src/main/java/org/apache/commons/io/IOUtils.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/IOUtils.java 
b/src/main/java/org/apache/commons/io/IOUtils.java
index 8c8a9152..dfb4c19e 100644
--- a/src/main/java/org/apache/commons/io/IOUtils.java
+++ b/src/main/java/org/apache/commons/io/IOUtils.java
@@ -894,7 +894,6 @@ public class IOUtils {
      * @param input2 the second stream
      * @return true if the content of the streams are equal or they both don't
      * exist, false otherwise
-     * @throws NullPointerException if either input is null
      * @throws IOException          if an I/O error occurs
      */
     public static boolean contentEquals(final InputStream input1, final 
InputStream input2) throws IOException {

Reply via email to