gnodet commented on a change in pull request #530:
URL: https://github.com/apache/maven/pull/530#discussion_r716843859



##########
File path: 
maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java
##########
@@ -59,6 +66,16 @@ public DefaultProjectDependencyGraph( 
Collection<MavenProject> projects )
         super();
         this.allProjects = Collections.unmodifiableList( new ArrayList<>( 
projects ) );
         this.sorter = new ProjectSorter( projects );
+        this.order = new HashMap<>();
+        this.projects = new HashMap<>();
+        List<MavenProject> sorted = this.sorter.getSortedProjects();
+        for ( int index = 0; index < sorted.size(); index++ )
+        {
+            MavenProject project = sorted.get( index );

Review comment:
       Yeah, well, the list is backed by an `ArrayList` in this case and not a 
`LinkedList`, but the change is ok.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to