You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/05/08 17:13:18 UTC

[GitHub] [maven-enforcer] elharo commented on a change in pull request #35: [MENFORCER-304] Improve dependency resolving in multiple modules project

elharo commented on a change in pull request #35:
URL: https://github.com/apache/maven-enforcer/pull/35#discussion_r422262133



##########
File path: enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractBanDependencies.java
##########
@@ -191,4 +207,19 @@ public void setSearchTransitive( boolean theSearchTransitive )
         this.searchTransitive = theSearchTransitive;
     }
 
+    /**
+     * @return the reactorProjects
+     */
+    public List<MavenProject> getReactorProjects()
+    {
+        return reactorProjects;
+    }
+
+    /**
+     * @param reactorProjects the reactorProjects to set
+     */
+    public void setReactorProjects( List<MavenProject> reactorProjects )
+    {
+        this.reactorProjects = reactorProjects;

Review comment:
       make a copy to avoid exposing mutable internal state.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org