From 5b3be555ff565177ef9813674c3bc24b2d45d137 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sun, 24 Nov 2024 13:06:46 +0000 Subject: [PATCH] Remove StringUtils from UnpackMojo (#488) --- .../plugins/dependency/fromConfiguration/UnpackMojo.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java b/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java index 979ed507a5..ac3369b47e 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java +++ b/src/main/java/org/apache/maven/plugins/dependency/fromConfiguration/UnpackMojo.java @@ -21,7 +21,6 @@ import java.io.File; import java.util.List; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Component; @@ -165,10 +164,10 @@ protected List getProcessedArtifactItems(boolean removeVersion) th List items = super.getProcessedArtifactItems(new ProcessArtifactItemsRequest(removeVersion, false, false, false)); for (ArtifactItem artifactItem : items) { - if (StringUtils.isEmpty(artifactItem.getIncludes())) { + if (artifactItem.getIncludes().isEmpty()) { artifactItem.setIncludes(getIncludes()); } - if (StringUtils.isEmpty(artifactItem.getExcludes())) { + if (artifactItem.getExcludes().isEmpty()) { artifactItem.setExcludes(getExcludes()); } }