You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2016/03/01 03:43:18 UTC

[jira] [Updated] (LANG-1210) StringUtils#startsWithAny has error in Javadoc

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

Gary Gregory updated LANG-1210:
-------------------------------
    Summary: StringUtils#startsWithAny has error in Javadoc  (was: StringUtils#startsWithAny has wrong javadoc)

> 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, 3.x
>            Reporter: Matthias Niehoff
>            Priority: Minor
>
> 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)