Tibor17 commented on a change in pull request #281: [MNG-6357] Dependency order 
should be nearest first
URL: https://github.com/apache/maven/pull/281#discussion_r319732916
 
 

 ##########
 File path: maven-core/src/main/java/org/apache/maven/RepositoryUtils.java
 ##########
 @@ -112,6 +113,27 @@ private static String nullify( String string )
     public static void toArtifacts( 
Collection<org.apache.maven.artifact.Artifact> artifacts,
                                     Collection<? extends DependencyNode> 
nodes, List<String> trail,
                                     DependencyFilter filter )
+    {
+        Map<Integer, List<org.apache.maven.artifact.Artifact>> 
artifactsByDepth =
+            new TreeMap<Integer, List<org.apache.maven.artifact.Artifact>>();
+
+        ArrayList<org.apache.maven.artifact.Artifact> firstLevelArtifacts =
+            new ArrayList<org.apache.maven.artifact.Artifact>( nodes.size() );
 
 Review comment:
   same here

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


With regards,
Apache Git Services

Reply via email to