You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/06/07 09:53:30 UTC

[maven-shared-utils] branch mshared-919 created (now 99ff20e)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch mshared-919
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git.


      at 99ff20e  deprecate defaultString since it's now in the JDK

This branch includes the following new commits:

     new 99ff20e  deprecate defaultString since it's now in the JDK

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-shared-utils] 01/01: deprecate defaultString since it's now in the JDK

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch mshared-919
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git

commit 99ff20e8b36496a92e098d6743ee13008de74a7d
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Jun 7 05:53:17 2020 -0400

    deprecate defaultString since it's now in the JDK
---
 src/main/java/org/apache/maven/shared/utils/StringUtils.java | 4 ++++
 1 file changed, 4 insertions(+)

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 224c470..4755244 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 class StringUtils
      * @param obj the Object to check
      * @return the passed in Object's toString, or blank if it was
      *         <code>null</code>
+     * @deprecated use {@code java.lang.Objects.toString()}
      */
+    @Deprecated
     @Nonnull public static String defaultString( Object obj )
     {
         return defaultString( obj, "" );
@@ -1902,7 +1904,9 @@ public class StringUtils
      *                      <code>null</code>
      * @return the passed in string, or the default if it was
      *         <code>null</code>
+     * @deprecated use {@code java.lang.Objects.toString()}
      */
+    @Deprecated
     @Nonnull public static String defaultString( Object obj, @Nonnull String defaultString )
     {
         return ( obj == null ) ? defaultString : obj.toString();