You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2022/11/27 21:59:11 UTC

[maven-dependency-plugin] branch string updated: isEmpty()

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch string
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git


The following commit(s) were added to refs/heads/string by this push:
     new b7f42c54 isEmpty()
b7f42c54 is described below

commit b7f42c54891b4d049bcb44e570dcd8156821c6df
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Nov 27 16:59:04 2022 -0500

    isEmpty()
---
 .../plugins/dependency/resolvers/ResolveDependencySourcesMojo.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/dependency/resolvers/ResolveDependencySourcesMojo.java b/src/main/java/org/apache/maven/plugins/dependency/resolvers/ResolveDependencySourcesMojo.java
index 79976150..e99ae2c3 100644
--- a/src/main/java/org/apache/maven/plugins/dependency/resolvers/ResolveDependencySourcesMojo.java
+++ b/src/main/java/org/apache/maven/plugins/dependency/resolvers/ResolveDependencySourcesMojo.java
@@ -48,7 +48,7 @@ public class ResolveDependencySourcesMojo
     protected void doExecute()
         throws MojoExecutionException
     {
-        if ( this.classifier == null || this.classifier.length() == 0 )
+        if ( this.classifier == null || this.classifier.isEmpty() )
         {
             this.classifier = SOURCE_CLASSIFIER;
         }