This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch more3 in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit 83246952f6826ea4ecad8ce9ef24bd4da5dce3e1 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Sun Nov 24 11:21:52 2024 -0500 Remove StringUtils dependency --- .../dependency/utils/markers/UnpackFileMarkerHandler.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java b/src/main/java/org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java index 00c7be06..396f39fc 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java +++ b/src/main/java/org/apache/maven/plugins/dependency/utils/markers/UnpackFileMarkerHandler.java @@ -20,7 +20,6 @@ package org.apache.maven.plugins.dependency.utils.markers; import java.io.File; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem; /** @@ -52,22 +51,22 @@ public class UnpackFileMarkerHandler extends DefaultFileMarkerHandler { protected File getMarkerFile() { /* * Build a hash of all include/exclude strings, to determine if an artifactItem has been unpacked using the - * include/exclude parameters, this will allow an artifact to be included multiple times with different - * include/exclude parameters + * include/exclude parameters. This allows an artifact to be included multiple times with different + * include/exclude parameters. */ File markerFile; if (this.artifactItem == null - || (StringUtils.isEmpty(this.artifactItem.getIncludes()) - && StringUtils.isEmpty(this.artifactItem.getExcludes()))) { + || this.artifactItem.getIncludes().isEmpty() + && this.artifactItem.getExcludes().isEmpty()) { markerFile = super.getMarkerFile(); } else { int includeExcludeHash = 0; - if (StringUtils.isNotEmpty(this.artifactItem.getIncludes())) { + if (!this.artifactItem.getIncludes().isEmpty()) { includeExcludeHash += this.artifactItem.getIncludes().hashCode(); } - if (StringUtils.isNotEmpty(this.artifactItem.getExcludes())) { + if (!this.artifactItem.getExcludes().isEmpty()) { includeExcludeHash += this.artifactItem.getExcludes().hashCode(); }