raj76kk commented on a change in pull request #522:
URL: https://github.com/apache/commons-lang/pull/522#discussion_r420615752
##########
File path: src/main/java/org/apache/commons/lang3/ObjectUtils.java
##########
@@ -277,6 +277,33 @@ public static boolean isNotEmpty(final Object object) {
return object != null ? object : defaultSupplier == null ? null :
defaultSupplier.get();
}
+ /**
+ * Checks if any value in the given array is {@code null}.
+ *
+ * <p>
+ * If all the values are {@code null} or the array is {@code null}
+ * or empty, then {@code true} is returned, otherwise {@code false} is
returned.
+ * </p>
+ *
+ * <pre>
+ * ObjectUtils.anyNull(*) = false
+ * ObjectUtils.anyNull(*, null) = false
+ * ObjectUtils.anyNull(null, *) = false
+ * ObjectUtils.anyNull(null, null, *, *) = false
Review comment:
Incorrect examples
```suggestion
* ObjectUtils.anyNull(*, null) = true
* ObjectUtils.anyNull(null, *) = true
* ObjectUtils.anyNull(null, null, *, *) = true
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]