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/03/06 08:45:27 UTC
[jira] Updated: (LANG-600) Javadoc is incorrect for public static
int lastIndexOf(String str, String searchStr)
[ https://issues.apache.org/jira/browse/LANG-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell updated LANG-600:
-------------------------------
Fix Version/s: 3.0
> Javadoc is incorrect for public static int lastIndexOf(String str, String searchStr)
> ------------------------------------------------------------------------------------
>
> Key: LANG-600
> URL: https://issues.apache.org/jira/browse/LANG-600
> Project: Commons Lang
> Issue Type: Task
> Components: lang.*
> Affects Versions: 2.4
> Reporter: Sean Montgomery
> Priority: Trivial
> Fix For: 3.0
>
>
> The javadoc's examples show how indexOf should work not lastIndexOf.
> StringUtils.lastIndexOf(null, *) = -1
> StringUtils.lastIndexOf(*, null) = -1
> StringUtils.lastIndexOf("", "") = 0
> StringUtils.lastIndexOf("aabaabaa", "a") = 0
> StringUtils.lastIndexOf("aabaabaa", "b") = 2
> StringUtils.lastIndexOf("aabaabaa", "ab") = 1
> StringUtils.lastIndexOf("aabaabaa", "") = 8
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.