You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Valentin Rocher (JIRA)" <ji...@apache.org> on 2010/02/07 11:34:27 UTC
[jira] Commented: (LANG-589) StringUtils: indexOf("", String) and
indexOf("", char) have different behaviour
[ 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.