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 2022/12/04 19:13:12 UTC

[maven-shared-utils] branch elharo-patch-2 created (now 7414ce0)

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

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


      at 7414ce0  check for null in Java 11

This branch includes the following new commits:

     new 7414ce0  check for null in Java 11

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: check for null in Java 11

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

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

commit 7414ce08f16ddd1002c46038f5304d06c05e7f4d
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Sun Dec 4 19:13:08 2022 +0000

    check for null in Java 11
---
 src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomUtils.java b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomUtils.java
index c95f314..c04f619 100644
--- a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomUtils.java
@@ -148,8 +148,8 @@ public class Xpp3DomUtils
     }
 
     /**
-     * @deprecated use <code>String.isBlank()</code> (Java 11+) 
-     *             or <code>org.apache.commons.lang3.StringUtils.isBlank()</code>
+     * @deprecated use <code>org.apache.commons.lang3.StringUtils.isBlank()</code>
+     *     or <code>str == null || String.isBlank(str)</code> (Java 11+)  
      * @param str the string to be checked
      * @return <code>true</code> if the string is null, empty, or whitespace only; <code>false</code> otherwise
      */