From 9678f79d0e4f347545ddec59dc93a24d9c0e1f07 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Wed, 20 Nov 2024 04:03:16 -0500 Subject: [PATCH] UnpackMojo --- .../dependency/fromConfiguration/UnpackMojo.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 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 979ed507a..84bede254 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; @@ -157,18 +156,18 @@ ArtifactItemFilter getMarkedArtifactFilter(ArtifactItem item) { } /** - * @param removeVersion removeVersion. + * @param removeVersion removeVersion * @return list of {@link ArtifactItem} - * @throws MojoExecutionException in case of an error. + * @throws MojoExecutionException in case of an error */ protected List getProcessedArtifactItems(boolean removeVersion) throws MojoExecutionException { 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()); } } @@ -176,7 +175,7 @@ protected List getProcessedArtifactItems(boolean removeVersion) th } /** - * @return Returns the markersDirectory. + * @return returns the markersDirectory */ public File getMarkersDirectory() { return this.markersDirectory;