[
https://issues.apache.org/jira/browse/LANG-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830848#action_12830848
]
Chandrashekar M commented on LANG-589:
--------------------------------------
StringUtils.indexOf("","") returns 0
StringUtils.indexOf("","a") returns -1
StringUtils.indexOf("",'') cant be given
StringUtils.indexOf("",'c') returns -1
I think API is working correctly or is there any other scenario where it
behaves differently?
> 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.