commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [lang] Applied Javadoc patch and added new test per https://github.com/apache/commons-lang/pull/115
Date Wed, 13 Apr 2016 21:13:28 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master ff902c156 -> 833885c29


Applied Javadoc patch and added new test per
https://github.com/apache/commons-lang/pull/115

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/833885c2
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/833885c2
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/833885c2

Branch: refs/heads/master
Commit: 833885c29d3f037b8985e7822f714fbc484d0378
Parents: ff902c1
Author: ggregory <ggregory@apache.org>
Authored: Wed Apr 13 14:13:24 2016 -0700
Committer: ggregory <ggregory@apache.org>
Committed: Wed Apr 13 14:13:24 2016 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/StringUtils.java            | 2 +-
 .../org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/833885c2/src/main/java/org/apache/commons/lang3/StringUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index b3a17f2..bd2b645 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -1342,7 +1342,7 @@ public class StringUtils {
      * StringUtils.indexOfIgnoreCase("aabaabaa", "B", 9)  = -1
      * StringUtils.indexOfIgnoreCase("aabaabaa", "B", -1) = 2
      * StringUtils.indexOfIgnoreCase("aabaabaa", "", 2)   = 2
-     * StringUtils.indexOfIgnoreCase("abc", "", 9)        = 3
+     * StringUtils.indexOfIgnoreCase("abc", "", 9)        = -1
      * </pre>
      *
      * @param str  the CharSequence to check, may be null

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/833885c2/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java
index 6ffc1b2..a4079c9 100644
--- a/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java
+++ b/src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java
@@ -930,6 +930,7 @@ public class StringUtilsEqualsIndexOfTest  {
         assertEquals(5, StringUtils.indexOfIgnoreCase("aabaabaa", "", 5));
         assertEquals(-1, StringUtils.indexOfIgnoreCase("ab", "AAB", 0));
         assertEquals(-1, StringUtils.indexOfIgnoreCase("aab", "AAB", 1));
+        assertEquals(-1, StringUtils.indexOfIgnoreCase("abc", "", 9));
     }
 
     @Test


Mime
View raw message