This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 728a1c1c Break dependency on commons-lang3 (#478) 728a1c1c is described below commit 728a1c1c1be4c17659891dd546a18724aaa99fa6 Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Tue Nov 19 11:32:32 2024 +0000 Break dependency on commons-lang3 (#478) --- .../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(); }