You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oleg Chubaryov (JIRA)" <ji...@apache.org> on 2018/10/20 05:11:00 UTC
[jira] [Commented] (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=16657736#comment-16657736 ]
Oleg Chubaryov commented on LANG-1418:
--------------------------------------
How does this test pass?
{{public class StringUtilsEmptyBlankTest {...}}
{{ @Test}}
{{ public void testIsAnyBlank() {}}
{{ assertTrue(StringUtils.isAnyBlank((String) null));}}
...
Most likely bug in Intellij IDEA.
> 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)