Github user ptemplier commented on a diff in the pull request:

    https://github.com/apache/commons-lang/pull/193#discussion_r80358287
  
    --- Diff: src/main/java/org/apache/commons/lang3/StringUtils.java ---
    @@ -258,6 +258,35 @@ public static boolean isAnyEmpty(final CharSequence... 
css) {
         }
         
         /**
    +     * <p>Checks if any one of the CharSequences are not empty ("") or 
null.</p>
    +     *
    +     * <pre>
    +     * StringUtils.isAnyNotEmpty(null)             = false
    +     * StringUtils.isAnyNotEmpty(null, "foo")      = true
    +     * StringUtils.isAnyNotEmpty("", "bar")        = true
    +     * StringUtils.isAnyNotEmpty("bob", "")        = true
    +     * StringUtils.isAnyNotEmpty("  bob  ", null)  = true
    +     * StringUtils.isAnyNotEmpty(" ", "bar")       = true
    +     * StringUtils.isAnyNotEmpty("foo", "bar")     = true
    +     * </pre>
    +     *
    +     * @param css  the CharSequences to check, may be null or empty
    +     * @return {@code true} if any of the CharSequences are empty or null
    +     * @since 3.5
    +     */
    +    public static boolean isAnyNotEmpty(final CharSequence... css) {
    +      if (ArrayUtils.isEmpty(css)) {
    +        return true;
    --- End diff --
    
    I took the same behaviour as isAnyBlank()/isAnyEmpty() but maybe those 
should return false too. It would make more sense.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to