maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r556044 - /maven/shared/trunk/maven-dependency-tree/src/test/java/org/apache/maven/shared/dependency/tree/DependencyTreeBuilderTest.java
Date Fri, 13 Jul 2007 15:50:56 GMT
Author: markh
Date: Fri Jul 13 08:50:55 2007
New Revision: 556044

URL: http://svn.apache.org/viewvc?view=rev&rev=556044
Log:
Used LinkedHashSet when recording artifact dependencies in tests, since dependency order is
significant

Modified:
    maven/shared/trunk/maven-dependency-tree/src/test/java/org/apache/maven/shared/dependency/tree/DependencyTreeBuilderTest.java

Modified: maven/shared/trunk/maven-dependency-tree/src/test/java/org/apache/maven/shared/dependency/tree/DependencyTreeBuilderTest.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-tree/src/test/java/org/apache/maven/shared/dependency/tree/DependencyTreeBuilderTest.java?view=diff&rev=556044&r1=556043&r2=556044
==============================================================================
--- maven/shared/trunk/maven-dependency-tree/src/test/java/org/apache/maven/shared/dependency/tree/DependencyTreeBuilderTest.java
(original)
+++ maven/shared/trunk/maven-dependency-tree/src/test/java/org/apache/maven/shared/dependency/tree/DependencyTreeBuilderTest.java
Fri Jul 13 08:50:55 2007
@@ -22,7 +22,6 @@
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Iterator;
 import java.util.LinkedHashSet;
 import java.util.List;
@@ -370,7 +369,7 @@
     
     private void addArtifactMetadata( Artifact artifact, Artifact[] dependencyArtifacts )
     {
-        addArtifactMetadata( artifact, new HashSet( Arrays.asList( dependencyArtifacts )
) );
+        addArtifactMetadata( artifact, new LinkedHashSet( Arrays.asList( dependencyArtifacts
) ) );
     }
     
     private void addArtifactMetadata( Artifact artifact, Set dependencyArtifacts )



Mime
View raw message