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 2018/09/10 13:32:43 UTC

[GitHub] s50600822 commented on a change in pull request #180: better performant for some Collection operations

s50600822 commented on a change in pull request #180: better performant for some Collection operations
URL: https://github.com/apache/maven/pull/180#discussion_r216322443
 
 

 ##########
 File path: maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/MojoExecutorStub.java
 ##########
 @@ -50,10 +50,7 @@ public void execute( MavenSession session, MojoExecution mojoExecution, ProjectI
     public void execute( MavenSession session, List<MojoExecution> mojoExecutions, ProjectIndex projectIndex )
         throws LifecycleExecutionException
     {
-        for ( MojoExecution mojoExecution : mojoExecutions )
-        {
-            executions.add( mojoExecution );
-        }
+        executions.addAll(mojoExecutions);
 
 Review comment:
   Actually there should be none. The loop block is gone, this is now a single statement directly inside the parent block.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services