From fa436d849d61af287341e329f03ea6c16b405cae Mon Sep 17 00:00:00 2001 From: Niall Pemberton Date: Wed, 17 Sep 2008 23:26:20 +0000 Subject: [PATCH] =?UTF-8?q?LANG-460=20-=20=20JavaDoc=20corrections=20-=20p?= =?UTF-8?q?arameters=20interchanged=20in=20StringUtils=20startsWith/starts?= =?UTF-8?q?WithIgnoreCase=20methods=20=20thanks=20to=20J=C3=B6rg=20Gottsch?= =?UTF-8?q?ling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@696516 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/StringUtils.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/java/org/apache/commons/lang/StringUtils.java b/src/java/org/apache/commons/lang/StringUtils.java index 55238d70c..980a128c7 100644 --- a/src/java/org/apache/commons/lang/StringUtils.java +++ b/src/java/org/apache/commons/lang/StringUtils.java @@ -5881,10 +5881,10 @@ public class StringUtils { * *
      * StringUtils.startsWith(null, null)      = true
-     * StringUtils.startsWith(null, "abcdef")  = false
-     * StringUtils.startsWith("abc", null)     = false
-     * StringUtils.startsWith("abc", "abcdef") = true
-     * StringUtils.startsWith("abc", "ABCDEF") = false
+     * StringUtils.startsWith(null, "abc")     = false
+     * StringUtils.startsWith("abcdef", null)  = false
+     * StringUtils.startsWith("abcdef", "abc") = true
+     * StringUtils.startsWith("ABCDEF", "abc") = false
      * 
* * @see java.lang.String#startsWith(String) @@ -5906,10 +5906,10 @@ public class StringUtils { * *
      * StringUtils.startsWithIgnoreCase(null, null)      = true
-     * StringUtils.startsWithIgnoreCase(null, "abcdef")  = false
-     * StringUtils.startsWithIgnoreCase("abc", null)     = false
-     * StringUtils.startsWithIgnoreCase("abc", "abcdef") = true
-     * StringUtils.startsWithIgnoreCase("abc", "ABCDEF") = true
+     * StringUtils.startsWithIgnoreCase(null, "abc")     = false
+     * StringUtils.startsWithIgnoreCase("abcdef", null)  = false
+     * StringUtils.startsWithIgnoreCase("abcdef", "abc") = true
+     * StringUtils.startsWithIgnoreCase("ABCDEF", "abc") = true
      * 
* * @see java.lang.String#startsWith(String) @@ -5955,10 +5955,11 @@ public class StringUtils { * *
      * StringUtils.endsWith(null, null)      = true
-     * StringUtils.endsWith(null, "abcdef")  = false
-     * StringUtils.endsWith("def", null)     = false
-     * StringUtils.endsWith("def", "abcdef") = true
-     * StringUtils.endsWith("def", "ABCDEF") = false
+     * StringUtils.endsWith(null, "def")     = false
+     * StringUtils.endsWith("abcdef", null)  = false
+     * StringUtils.endsWith("abcdef", "def") = true
+     * StringUtils.endsWith("ABCDEF", "def") = false
+     * StringUtils.endsWith("ABCDEF", "cde") = false
      * 
* * @see java.lang.String#endsWith(String) @@ -5980,8 +5981,8 @@ public class StringUtils { * *
      * StringUtils.endsWithIgnoreCase(null, null)      = true
-     * StringUtils.endsWithIgnoreCase("abcdef", null)  = false
      * StringUtils.endsWithIgnoreCase(null, "def")     = false
+     * StringUtils.endsWithIgnoreCase("abcdef", null)  = false
      * StringUtils.endsWithIgnoreCase("abcdef", "def") = true
      * StringUtils.endsWithIgnoreCase("ABCDEF", "def") = true
      * StringUtils.endsWithIgnoreCase("ABCDEF", "cde") = false