Author: niallp Date: Wed Sep 17 16:26:20 2008 New Revision: 696516 URL: http://svn.apache.org/viewvc?rev=696516&view=rev Log: LANG-460 - JavaDoc corrections - parameters interchanged in StringUtils startsWith/startsWithIgnoreCase methods thanks to Jörg Gottschling
Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?rev=696516&r1=696515&r2=696516&view=diff ============================================================================== --- commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java (original) +++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Wed Sep 17 16:26:20 2008 @@ -5881,10 +5881,10 @@ * * <pre> * 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 * </pre> * * @see java.lang.String#startsWith(String) @@ -5906,10 +5906,10 @@ * * <pre> * 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 * </pre> * * @see java.lang.String#startsWith(String) @@ -5955,10 +5955,11 @@ * * <pre> * 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 * </pre> * * @see java.lang.String#endsWith(String) @@ -5980,8 +5981,8 @@ * * <pre> * 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