commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent Worden (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1191) Incorrect javadoc
Date Tue, 26 Jan 2016 04:26:39 GMT

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

Brent Worden commented on LANG-1191:
------------------------------------

There does appear to be an inconsistency with:

StringUtils.containsAny("abcd", "ab", null) = false

This does assert to true when added as a test case.

> Incorrect javadoc
> -----------------
>
>                 Key: LANG-1191
>                 URL: https://issues.apache.org/jira/browse/LANG-1191
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.4
>            Reporter: qed
>            Priority: Minor
>
> Javadoc for boolean org.apache.commons.lang3.StringUtils.containsAny(CharSequence cs,
CharSequence... searchCharSequences) says:
> StringUtils.containsAny("abcd", "ab", "cd") = false
> which is not true. It should be:
> StringUtils.containsAny("abcd", "ab", "cd") = true



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message