commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Starke (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-656) Example StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0 incorrect
Date Mon, 08 Nov 2010 08:58:16 GMT
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.


Mime
View raw message