commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1210) StringUtils#startsWithAny has wrong javadoc
Date Tue, 01 Mar 2016 02:41:18 GMT

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

ASF GitHub Bot commented on LANG-1210:
--------------------------------------

Github user garydgregory commented on the pull request:

    https://github.com/apache/commons-lang/pull/126#issuecomment-190505830
  
    Fixed with https://issues.apache.org/jira/browse/LANG-1211 and commit d1a3255600da34f4b69dc082c4441ae140452fee


> StringUtils#startsWithAny has wrong 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)

Mime
View raw message