commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (LANG-1210) StringUtils#startsWithAny has wrong javadoc
Date Mon, 29 Feb 2016 14:16:18 GMT


ASF GitHub Bot commented on LANG-1210:

GitHub user mniehoff opened a pull request:

    LANG-1210 Fixed JavaDoc


You can merge this pull request into a Git repository by running:

    $ git pull master

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #126
commit 447846e111bddbb2fb98ea1c12bc356ad993c8ab
Author: Matthias Niehoff <>
Date:   2016-02-29T14:14:25Z

    LANG-1210 Fixed JavaDoc


> StringUtils#startsWithAny has wrong javadoc
> -------------------------------------------
>                 Key: LANG-1210
>                 URL:
>             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
> 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

View raw message