You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/02/08 07:59:28 UTC

[jira] Closed: (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:all-tabpanel ]

Henri Yandell closed LANG-589.
------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: 2.5)

Thanks Valentin and Chandrashekar. You're both correct.

I've updated the javadoc to make it clearer, sorry for the false alarm :)

svn ci -m "Adding extra javadoc to point out that usually indexOf on an empty String == -1. LANG-589" src/
Sending        src/main/java/org/apache/commons/lang3/StringUtils.java
Transmitting file data .
Committed revision 907561.

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