diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 711852ecb..f2ddf764d 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -74,7 +74,7 @@ import java.util.regex.Pattern; * - abbreviates a string using ellipsis *
Removes a substring only if it is at the begining of a source string, + *
Removes a substring only if it is at the beginning of a source string, * otherwise returns the source string.
* *A {@code null} source string will return {@code null}. @@ -3596,7 +3596,7 @@ public class StringUtils { } /** - *
Case insensitive removal of a substring if it is at the begining of a source string, + *
Case insensitive removal of a substring if it is at the beginning of a source string, * otherwise returns the source string.
* *A {@code null} source string will return {@code null}. @@ -4027,7 +4027,7 @@ public class StringUtils { return text; } - // if recursing, this shouldnt be less than 0 + // if recursing, this shouldn't be less than 0 if (timeToLive < 0) { throw new IllegalStateException("TimeToLive of " + timeToLive + " is less than 0: " + text); } @@ -4079,7 +4079,7 @@ public class StringUtils { int start = 0; - // get a good guess on the size of the result buffer so it doesnt have to double if it goes over a bit + // get a good guess on the size of the result buffer so it doesn't have to double if it goes over a bit int increase = 0; // count the replacement text elements that are larger than their corresponding text being replaced @@ -5153,7 +5153,7 @@ public class StringUtils { // Character Tests //----------------------------------------------------------------------- /** - *
Checks if the CharSequence contains only unicode letters.
+ *Checks if the CharSequence contains only Unicode letters.
* *{@code null} will return {@code false}. * An empty CharSequence (length()=0) will return {@code false}.
@@ -5186,7 +5186,7 @@ public class StringUtils { } /** - *Checks if the CharSequence contains only unicode letters and + *
Checks if the CharSequence contains only Unicode letters and * space (' ').
* *{@code null} will return {@code false} @@ -5221,7 +5221,7 @@ public class StringUtils { } /** - *
Checks if the CharSequence contains only unicode letters or digits.
+ *Checks if the CharSequence contains only Unicode letters or digits.
* *{@code null} will return {@code false}. * An empty CharSequence (length()=0) will return {@code false}.
@@ -5256,7 +5256,7 @@ public class StringUtils { } /** - *Checks if the CharSequence contains only unicode letters, digits + *
Checks if the CharSequence contains only Unicode letters, digits * or space ({@code ' '}).
* *{@code null} will return {@code false}. @@ -5330,8 +5330,8 @@ public class StringUtils { } /** - *
Checks if the CharSequence contains only unicode digits. - * A decimal point is not a unicode digit and returns false.
+ *Checks if the CharSequence contains only Unicode digits. + * A decimal point is not a Unicode digit and returns false.
* *{@code null} will return {@code false}. * An empty CharSequence (length()=0) will return {@code false}.
@@ -5366,9 +5366,9 @@ public class StringUtils { } /** - *Checks if the CharSequence contains only unicode digits or space + *
Checks if the CharSequence contains only Unicode digits or space * ({@code ' '}). - * A decimal point is not a unicode digit and returns false.
+ * A decimal point is not a Unicode digit and returns false. * *{@code null} will return {@code false}. * An empty CharSequence (length()=0) will return {@code true}.
@@ -6356,7 +6356,7 @@ public class StringUtils { * @see java.lang.String#startsWith(String) * @param str the CharSequence to check, may be null * @param prefix the prefix to find, may be null - * @param ignoreCase inidicates whether the compare should ignore case + * @param ignoreCase indicates whether the compare should ignore case * (case insensitive) or not. * @return {@code true} if the CharSequence starts with the prefix or * both {@code null} @@ -6466,7 +6466,7 @@ public class StringUtils { * @see java.lang.String#endsWith(String) * @param str the CharSequence to check, may be null * @param suffix the suffix to find, may be null - * @param ignoreCase inidicates whether the compare should ignore case + * @param ignoreCase indicates whether the compare should ignore case * (case insensitive) or not. * @return {@code true} if the CharSequence starts with the prefix or * both {@code null} @@ -6510,7 +6510,7 @@ public class StringUtils { * *
* The difference is that Java's whitespace includes vertical tab and form feed, which this functional will also
- * normalize. Additonally {@link #trim(String)}
removes control characters (char <= 32) from both
+ * normalize. Additionally {@link #trim(String)}
removes control characters (char <= 32) from both
* ends of this String.
*