You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Philip Hodges (JIRA)" <ji...@apache.org> on 2019/03/16 14:00:02 UTC
[jira] [Comment Edited] (LANG-1418) Incorrect Javadoc for
StringUtils.isAnyBlank(null)
[ https://issues.apache.org/jira/browse/LANG-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794259#comment-16794259 ]
Philip Hodges edited comment on LANG-1418 at 3/16/19 1:59 PM:
--------------------------------------------------------------
Refactor Extract Method and Evaluate Expression to call the extracted method produces result = true.
So it looks like the javaDoc is correct after all, and that it is just a bug in IntelliJ IDEA Evaluate Expression. I suspect it is passing null as the array of a variable number of String arguments instead of as the only String in a variable argument list. When the call is extracted as a method, javac evaluates it as expected.
was (Author: ph26):
Refactor Extract Method and Evaluate Expression to call the extracted method produces result = true.
So it does indeed look like a bug in IntelliJ IDEA Evaluate Expression. I suspect it is passing null as the array of a variable number of String arguments instead of as the only String in a variable argument list. When the call is extracted as a method, javac evaluates it as expected.
> 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
(v7.6.3#76005)