diff --git a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3Dom.java b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3Dom.java
index 40b7b633..aece7643 100644
--- a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3Dom.java
+++ b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3Dom.java
@@ -354,17 +354,27 @@ private PrettyPrintXMLWriter getPrettyPrintXMLWriter(StringWriter writer) {
}
/**
- * @param str The string to be checked.
- * @return true if the string is not empty (length > 0) and not null
.
+ * Warning: this is not the reverse of {@link #isEmpty}.
+ * Whitespace only strings are both empty and not empty.
+ *
+ * @param str the string to be checked
+ * @return true if the string is not empty (length > 0) and not null
+ * @deprecated use str != null && !str.isEmpty()
*/
+ @Deprecated
public static boolean isNotEmpty(String str) {
return str != null && str.length() > 0;
}
/**
- * @param str The string to be checked.
- * @return true if the string is empty or null
.
+ * Warning: this is not the reverse of {@link #isNotEmpty}.
+ * Whitespace only strings are both empty and not empty.
+ *
+ * @param str the string to be checked
+ * @return true if the string only contains whitespace or is null
+ * @deprecated use str == null || str.trim().isEmpty()
*/
+ @Deprecated
public static boolean isEmpty(String str) {
return str == null || str.trim().length() == 0;
}