commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1210) StringUtils#startsWithAny has error in Javadoc
Date Sat, 28 May 2016 16:31:12 GMT

     [ https://issues.apache.org/jira/browse/LANG-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher updated LANG-1210:
------------------------------------
    Affects Version/s:     (was: 3.x)

> StringUtils#startsWithAny has error in Javadoc
> ----------------------------------------------
>
>                 Key: LANG-1210
>                 URL: https://issues.apache.org/jira/browse/LANG-1210
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.3.2, 3.4
>            Reporter: Matthias Niehoff
>            Priority: Minor
>             Fix For: 3.5
>
>
> startsWithAny says in its javaDoc: 
> {code:java}
> /** 
> @return {@code true} if the CharSequence starts with any of the the prefixes, case insensitive,
or both {@code null} 
> **/
> {code} 
> but uses startsWith(final CharSequence str, final CharSequence prefix) which is *case
sensitive*.
> Either the JavaDoc of startsWithAny method should be changed or startsWithIgnoreCase()
or startsWith(CharSequence,CharSequence,boolean) should be used.



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

Mime
View raw message