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

elharo pushed a commit to branch another
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git

commit 4e441978e55bd72f555de75b21759b00809988c1
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Tue Nov 19 21:52:48 2024 -0500

    replace another StringUtils call
---
 .../apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
 
b/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
index 1d5d2553..05b9cb3c 100644
--- 
a/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
+++ 
b/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
@@ -29,7 +29,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.commons.lang3.StringUtils;
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
 import org.apache.maven.plugin.AbstractMojo;
@@ -512,7 +511,7 @@ public abstract class AbstractAnalyzeMojo extends 
AbstractMojo {
                 writer.startElement("version");
                 writer.writeText(artifact.getBaseVersion());
                 String classifier = artifact.getClassifier();
-                if (StringUtils.isNotBlank(classifier)) {
+                if (classifier != null && !classifier.trim().isEmpty()) {
                     writer.startElement("classifier");
                     writer.writeText(artifact.getClassifier());
                     writer.endElement();

Reply via email to