commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Rocher (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-589) StringUtils: indexOf("", String) and indexOf("", char) have different behaviour
Date Sun, 07 Feb 2010 10:34:27 GMT

    [ https://issues.apache.org/jira/browse/LANG-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830691#action_12830691
] 

Valentin Rocher commented on LANG-589:
--------------------------------------

In the javadoc, the only example with "" as first parameter for the String version is StringUtils.indexOf("",
"") = 0

Will this example be still valid ? Do I understand clearly that we must have both this behaviour
and StringUtils.indexOf("", *) = -1 ?

> StringUtils: indexOf("", String) and indexOf("", char) have different behaviour
> -------------------------------------------------------------------------------
>
>                 Key: LANG-589
>                 URL: https://issues.apache.org/jira/browse/LANG-589
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: Henri Yandell
>             Fix For: 2.5, 3.0
>
>
> One returns -1, the other returns 0.

-- 
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