diff --git a/src/main/java/org/apache/maven/shared/utils/StringUtils.java b/src/main/java/org/apache/maven/shared/utils/StringUtils.java index 224c4706..4755244e 100644 --- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java +++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java @@ -1886,7 +1886,9 @@ public static boolean isNumeric( String str ) * @param obj the Object to check * @return the passed in Object's toString, or blank if it was * null + * @deprecated use {@code java.lang.Objects.toString()} */ + @Deprecated @Nonnull public static String defaultString( Object obj ) { return defaultString( obj, "" ); @@ -1902,7 +1904,9 @@ public static boolean isNumeric( String str ) * null * @return the passed in string, or the default if it was * null + * @deprecated use {@code java.lang.Objects.toString()} */ + @Deprecated @Nonnull public static String defaultString( Object obj, @Nonnull String defaultString ) { return ( obj == null ) ? defaultString : obj.toString();