[ 
https://issues.apache.org/jira/browse/LANG-1539?focusedWorklogId=431092&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-431092
 ]

ASF GitHub Bot logged work on LANG-1539:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/May/20 08:14
            Start Date: 06/May/20 08:14
    Worklog Time Spent: 10m 
      Work Description: raj76kk commented on a change in pull request #522:
URL: https://github.com/apache/commons-lang/pull/522#discussion_r420615217



##########
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.

Review comment:
       Wrong method doc. Shouldn't it be?
   `If any of the values are {@code null} or the array is {@code null}, then 
{@code true} is returned, otherwise {@code false} is returned`

##########
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




----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 431092)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add allNull() and anyNull() functions to ObjectUtils.
> -----------------------------------------------------
>
>                 Key: LANG-1539
>                 URL: https://issues.apache.org/jira/browse/LANG-1539
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Isira Seneviratne
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to