[ 
https://issues.apache.org/jira/browse/LANG-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060825#comment-18060825
 ] 

Makarand Hinge commented on LANG-1418:
--------------------------------------

I tested this behavior in Commons Lang 3.8 and could not reproduce the issue. 
{{StringUtils.isAnyBlank((String) null)}} returns {{{}true{}}}, and 
{{StringUtils.isAnyBlank((String[]) null)}} returns {{{}false{}}}, which 
matches the current Javadoc. It seems the difference may be due to how {{null}} 
is passed to the varargs method. Could you please clarify the exact test case 
where {{(String) null}} returned {{{}false{}}}?

> Incorrect Javadoc for StringUtils.isAnyBlank(null)
> --------------------------------------------------
>
>                 Key: LANG-1418
>                 URL: https://issues.apache.org/jira/browse/LANG-1418
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.8
>            Reporter: Andrei
>            Priority: Major
>         Attachments: apache-common.isAnyBlank(null).png
>
>
> As of 
> [https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#isAnyBlank-java.lang.CharSequence...-]
>  isAnyBlank((String) null) -> true
> But test isAnyBlank((String) null) -> false.
> As the result incorrect description for the other methods that used isAnyBlank



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to