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:
[email protected]
With regards,
Apache Git Services