diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index c134e7bf7..c5038f534 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -310,6 +310,8 @@ public static boolean isNoneEmpty(final CharSequence... css) { /** *
Checks if a CharSequence is whitespace, empty ("") or null.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * ** StringUtils.isBlank(null) = true @@ -339,6 +341,8 @@ public static boolean isBlank(final CharSequence cs) { /** *Checks if a CharSequence is not empty (""), not null and not whitespace only.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * ** StringUtils.isNotBlank(null) = false @@ -360,6 +364,8 @@ public static boolean isNotBlank(final CharSequence cs) { /** *Checks if any one of the CharSequences are blank ("") or null and not whitespace only.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * ** StringUtils.isAnyBlank(null) = true @@ -390,6 +396,8 @@ public static boolean isAnyBlank(final CharSequence... css) { /** *Checks if any one of the CharSequences are not blank ("") or null and not whitespace only.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * ** StringUtils.isAnyNotBlank(null) = false @@ -420,6 +428,8 @@ public static boolean isAnyNotBlank(final CharSequence... css) { /** *Checks if none of the CharSequences are blank ("") or null and whitespace only.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * ** StringUtils.isNoneBlank(null) = false @@ -1926,11 +1936,13 @@ public static boolean containsIgnoreCase(final CharSequence str, final CharSeque } /** - * Check whether the given CharSequence contains any whitespace characters. + *Check whether the given CharSequence contains any whitespace characters.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. + * * @param seq the CharSequence to check (may be {@code null}) * @return {@code true} if the CharSequence is not empty and - * contains at least 1 whitespace character - * @see java.lang.Character#isWhitespace + * contains at least 1 (breaking) whitespace character * @since 3.0 */ // From org.springframework.util.StringUtils, under Apache License 2.0 @@ -7073,6 +7085,8 @@ public static boolean isNumericSpace(final CharSequence cs) { /** *Checks if the CharSequence contains only whitespace.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * *{@code null} will return {@code false}. * An empty CharSequence (length()=0) will return {@code true}.
@@ -7220,6 +7234,8 @@ public static String defaultString(final String str, final String defaultStr) { /** *Returns either the passed in CharSequence, or if the CharSequence is * whitespace, empty ("") or {@code null}, the value of {@code defaultStr}.
+ * + * Whitespace is defined by {@link Character#isWhitespace(char)}. * ** StringUtils.defaultIfBlank(null, "NULL") = "NULL"