This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch lang3 in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit 63e31b57e9ee9a47288f533914e1cf8be6404fbb Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Mon Nov 18 19:04:33 2024 -0500 Break dependency on commons-lang3 --- .../testUtils/stubs/StubUnpackFileMarkerHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/apache/maven/plugins/dependency/testUtils/stubs/StubUnpackFileMarkerHandler.java b/src/test/java/org/apache/maven/plugins/dependency/testUtils/stubs/StubUnpackFileMarkerHandler.java index 411aa048..cbb49f8f 100644 --- a/src/test/java/org/apache/maven/plugins/dependency/testUtils/stubs/StubUnpackFileMarkerHandler.java +++ b/src/test/java/org/apache/maven/plugins/dependency/testUtils/stubs/StubUnpackFileMarkerHandler.java @@ -20,7 +20,6 @@ package org.apache.maven.plugins.dependency.testUtils.stubs; import java.io.File; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem; import org.apache.maven.plugins.dependency.utils.markers.UnpackFileMarkerHandler; @@ -29,21 +28,22 @@ public class StubUnpackFileMarkerHandler extends UnpackFileMarkerHandler { super(artifactItem, markerFilesDirectory); } + @Override protected File getMarkerFile() { 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 = new StubMarkerFile( this.markerFilesDirectory, this.artifact.getId().replace(':', '-') + ".marker"); } 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(); }