commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r1056798 - /commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
Date Sat, 08 Jan 2011 21:04:29 GMT
Author: niallp
Date: Sat Jan  8 21:04:29 2011
New Revision: 1056798

URL: http://svn.apache.org/viewvc?rev=1056798&view=rev
Log:
Port LANG-600 to LANG 2.x Branch - Javadoc is incorrect for lastIndexOf() method

Modified:
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java?rev=1056798&r1=1056797&r2=1056798&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/StringUtils.java
Sat Jan  8 21:04:29 2011
@@ -1040,9 +1040,9 @@ public class StringUtils {
      * 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", "a")  = 7
+     * StringUtils.lastIndexOf("aabaabaa", "b")  = 5
+     * StringUtils.lastIndexOf("aabaabaa", "ab") = 4
      * StringUtils.lastIndexOf("aabaabaa", "")   = 8
      * </pre>
      *



Mime
View raw message