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 2021/12/10 19:06:02 UTC

[GitHub] [maven] michael-o commented on a change in pull request #634: [MNG-7354] Refactor MavenCli to ease extensibility

michael-o commented on a change in pull request #634:
URL: https://github.com/apache/maven/pull/634#discussion_r766915426



##########
File path: maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
##########
@@ -319,7 +319,7 @@ public MavenSession( PlexusContainer container, RepositorySystemSession reposito
     public MavenSession( PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result,
                          MavenProject project )
     {
-        this( container, request, result, Arrays.asList( new MavenProject[]{project} ) );
+        this( container, request, result, Collections.singletonList( project ) );

Review comment:
       This should have happened much earlier!




-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

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