LANG-1059 Capitalize javadoc is incorrect

This commit is contained in:
Sebb 2015-06-12 17:38:04 +01:00
parent 0822b4226f
commit 5f479e70cd
2 changed files with 13 additions and 15 deletions

View File

@ -5738,8 +5738,8 @@ public static String lowerCase(final String str, final Locale locale) {
}
/**
* <p>Capitalizes a String changing the first letter to title case as
* per {@link Character#toTitleCase(char)}. No other letters are changed.</p>
* <p>Capitalizes a String changing the first character to title case as
* per {@link Character#toTitleCase(char)}. No other characters are changed.</p>
*
* <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#capitalize(String)}.
* A {@code null} input String returns {@code null}.</p>
@ -5777,8 +5777,8 @@ public static String capitalize(final String str) {
}
/**
* <p>Uncapitalizes a String, changing the first letter to lower case as
* per {@link Character#toLowerCase(char)}. No other letters are changed.</p>
* <p>Uncapitalizes a String, changing the first character to lower case as
* per {@link Character#toLowerCase(char)}. No other characters are changed.</p>
*
* <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#uncapitalize(String)}.
* A {@code null} input String returns {@code null}.</p>

View File

@ -234,7 +234,7 @@ public static String wrap(final String str, int wrapLength, String newLineStr, f
//-----------------------------------------------------------------------
/**
* <p>Capitalizes all the whitespace separated words in a String.
* Only the first letter of each word is changed. To convert the
* Only the first character of each word is changed. To convert the
* rest of each word to lowercase at the same time,
* use {@link #capitalizeFully(String)}.</p>
*
@ -260,7 +260,7 @@ public static String capitalize(final String str) {
/**
* <p>Capitalizes all the delimiter separated words in a String.
* Only the first letter of each word is changed. To convert the
* Only the first character of each word is changed. To convert the
* rest of each word to lowercase at the same time,
* use {@link #capitalizeFully(String, char[])}.</p>
*
@ -368,7 +368,7 @@ public static String capitalizeFully(String str, final char... delimiters) {
//-----------------------------------------------------------------------
/**
* <p>Uncapitalizes all the whitespace separated words in a String.
* Only the first letter of each word is changed.</p>
* Only the first character of each word is changed.</p>
*
* <p>Whitespace is defined by {@link Character#isWhitespace(char)}.
* A <code>null</code> input String returns <code>null</code>.</p>
@ -389,7 +389,7 @@ public static String uncapitalize(final String str) {
/**
* <p>Uncapitalizes all the whitespace separated words in a String.
* Only the first letter of each word is changed.</p>
* Only the first character of each word is changed.</p>
*
* <p>The delimiters represent a set of characters understood to separate words.
* The first string character and the first non-delimiter character after a
@ -486,10 +486,9 @@ public static String swapCase(final String str) {
//-----------------------------------------------------------------------
/**
* <p>Extracts the initial letters from each word in the String.</p>
* <p>Extracts the initial characters from each word in the String.</p>
*
* <p>The first letter of the string and all first letters after
* whitespace are returned as a new string.
* <p>All first characters after whitespace are returned as a new string.
* Their case is not changed.</p>
*
* <p>Whitespace is defined by {@link Character#isWhitespace(char)}.
@ -512,10 +511,9 @@ public static String initials(final String str) {
}
/**
* <p>Extracts the initial letters from each word in the String.</p>
* <p>Extracts the initial characters from each word in the String.</p>
*
* <p>The first letter of the string and all first letters after the
* defined delimiters are returned as a new string.
* <p>All first characters after the defined delimiters are returned as a new string.
* Their case is not changed.</p>
*
* <p>If the delimiters array is null, then Whitespace is used.
@ -534,7 +532,7 @@ public static String initials(final String str) {
*
* @param str the String to get initials from, may be null
* @param delimiters set of characters to determine words, null means whitespace
* @return String of initial letters, <code>null</code> if null String input
* @return String of initial characters, <code>null</code> if null String input
* @see #initials(String)
* @since 2.2
*/