[
https://issues.apache.org/jira/browse/LANG-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17117028#comment-17117028
]
Eric LaBouve commented on LANG-1271:
------------------------------------
Here's some more context on the change:
$ jshell --class-path
~/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
jshell> import org.apache.commons.lang3.StringUtils;
jshell> StringUtils.isAnyEmpty((String[])null)
$2 ==> true
jshell> StringUtils.isAnyEmpty(new String[0]);
$3 ==> true
$ jshell --class-path
~/.m2/repository/org/apache/commons/commons-lang3/3.10/commons-lang3-3.10.jar
jshell> import org.apache.commons.lang3.StringUtils;
jshell> StringUtils.isAnyEmpty(null)
jshell> StringUtils.isAnyEmpty((String[])null)
$2 ==> false
jshell> StringUtils.isAnyEmpty(new String[0]);
$3 ==> false
> StringUtils#isAnyEmpty and #isAnyBlank should return false for an empty array
> -----------------------------------------------------------------------------
>
> Key: LANG-1271
> URL: https://issues.apache.org/jira/browse/LANG-1271
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*
> Reporter: Pascal Schumacher
> Assignee: Pascal Schumacher
> Priority: Minor
> Fix For: 3.6
>
>
> An empty array does not contain any empty/blank CharSequences, so
> isAnyEmpty/isAnyBlank should return false for an empty array.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)