[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Created] (LANG-1210) StringUtils#startsWithAny wrong javadoc
From:       "Matthias Niehoff (JIRA)" <jira () apache ! org>
Date:       2016-02-29 14:00:20
Message-ID: JIRA.12945473.1456754406000.172502.1456754420456 () Atlassian ! JIRA
[Download RAW message or body]

Matthias Niehoff created LANG-1210:
--------------------------------------

             Summary: StringUtils#startsWithAny 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.4, 3.3.2, 3.x
            Reporter: Matthias Niehoff
            Priority: Minor


startsWithAny says in its javaDoc:

@return {@code true} if the CharSequence starts with any of the the prefixes, case \
insensitive, or both {@code null}

but uses startsWith(final CharSequence str, final CharSequence prefix) which is case \
sensitive.

Either change the JavaDoc of startsWithAny method or use startsWithIgnoreCase() or \
startsWith(CharSequence,CharSequence,boolean).





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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic