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

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-jar.git

commit 4ddd8ef95f90baab90bf9c11ded0e5120d2adf56
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 16 22:46:11 2026 +0000

    Replace remaining StringUtils and Commons calls with the JDK
---
 .../shared/jar/identification/JarIdentificationAnalysis.java  | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/shared/jar/identification/JarIdentificationAnalysis.java
 
b/src/main/java/org/apache/maven/shared/jar/identification/JarIdentificationAnalysis.java
index dc5480a..e3cbb96 100644
--- 
a/src/main/java/org/apache/maven/shared/jar/identification/JarIdentificationAnalysis.java
+++ 
b/src/main/java/org/apache/maven/shared/jar/identification/JarIdentificationAnalysis.java
@@ -25,7 +25,6 @@ import javax.inject.Singleton;
 import java.util.List;
 
 import org.apache.maven.shared.jar.JarAnalyzer;
-import org.codehaus.plexus.util.StringUtils;
 
 import static java.util.Objects.requireNonNull;
 
@@ -79,23 +78,23 @@ public class JarIdentificationAnalysis {
     }
 
     private void normalize(JarIdentification taxon) {
-        if (StringUtils.isEmpty(taxon.getGroupId())) {
+        if (taxon.getGroupId() == null || taxon.getGroupId().isEmpty()) {
             taxon.setGroupId(pickSmallest(taxon.getPotentialGroupIds()));
         }
 
-        if (StringUtils.isEmpty(taxon.getArtifactId())) {
+        if (taxon.getArtifactId() == null || taxon.getArtifactId().isEmpty()) {
             taxon.setArtifactId(pickLargest(taxon.getPotentialArtifactIds()));
         }
 
-        if (StringUtils.isEmpty(taxon.getVersion())) {
+        if (taxon.getVersion() == null || taxon.getVersion().isEmpty()) {
             taxon.setVersion(pickSmallest(taxon.getPotentialVersions()));
         }
 
-        if (StringUtils.isEmpty(taxon.getName())) {
+        if (taxon.getName() == null || taxon.getName().isEmpty()) {
             taxon.setName(pickLargest(taxon.getPotentialNames()));
         }
 
-        if (StringUtils.isEmpty(taxon.getVendor())) {
+        if (taxon.getVendor() == null || taxon.getVendor().isEmpty()) {
             taxon.setVendor(pickLargest(taxon.getPotentialVendors()));
         }
     }

Reply via email to