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

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b377fb  [MPLUGIN-330] fixed little typo in test for MPLUGIN-305
0b377fb is described below

commit 0b377fba6408bb45c79e0d9b2ed02c84923c07e7
Author: HervĂ© Boutemy <[email protected]>
AuthorDate: Sat Jan 6 02:33:33 2018 +0100

    [MPLUGIN-330] fixed little typo in test for MPLUGIN-305
    
    the consequence of this typo was void: in case of empty dependencies
    filter, resulting dependencies to scan was just an empty list instead of
    null = not a big issue
---
 .../main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
 
b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
index c831832..70c267d 100644
--- 
a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
+++ 
b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
@@ -248,7 +248,7 @@ public abstract class AbstractGeneratorMojo
         {
             requestDependencies = dependencies;
         }
-        else if ( mojoDependencies == null )
+        else if ( mojoDependencies.size() == 0 )
         {
             requestDependencies = null;
         }

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to