Example StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0 incorrect
-----------------------------------------------------------------

                 Key: LANG-656
                 URL: https://issues.apache.org/jira/browse/LANG-656
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.*
    Affects Versions: 2.5
            Reporter: Dirk Starke
            Priority: Trivial


I recognized the following example in class StringUtils:
\\
{noformat}      StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0
{noformat}

According to Niall Pembertons answer on the user mailing list (Oct, 27th 2010) 
I should report an issue on this.
He suggested the following replacement:

{noformat}      StringUtils.indexOfAnyBut("zzabyycdxx", "")   = -1
{noformat}

Regards,
Dirk

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to