commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LANG-656) Example StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0 incorrect
Date Mon, 08 Nov 2010 15:20:23 GMT

     [ https://issues.apache.org/jira/browse/LANG-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Gregory resolved LANG-656.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Fixed in trunk.

> 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
>             Fix For: 3.0
>
>
> 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