]> source.dussan.org Git - archiva.git/commitdiff
restore previous behaviour, though it appears wrong
authorBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 15:32:43 +0000 (15:32 +0000)
committerBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 15:32:43 +0000 (15:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755281 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-dependency-graph/src/main/java/org/apache/maven/archiva/dependency/graph/tasks/RefineConflictsVisitor.java
archiva-modules/archiva-base/archiva-dependency-graph/src/test/java/org/apache/maven/archiva/dependency/graph/AbstractDependencyGraphFactoryTestCase.java

index 158edaa59f7ab134188bb817ca12c2ef407c4f1d..acf0a517cb09a4c04c68a4c524fe8dffba472802 100644 (file)
@@ -129,10 +129,12 @@ public class RefineConflictsVisitor
                 return -1;
             }
 
-            String version1 = o1.artifact.getVersion();
-            String version2 = o2.artifact.getVersion();
-
-            return VersionComparator.getInstance().compare( version1, version2 );
+//            String version1 = o1.artifact.getVersion();
+//            String version2 = o2.artifact.getVersion();
+//
+//            VersionComparator.getInstance().compare( version1, version2 );
+            
+            return 0;
         }
     }
 
index 1413b36cef06569ca0ea369789334dec3d368375..908ee3f8ddfebc4282cbbfb9fb63b1ec8fd2a2b0 100644 (file)
@@ -185,15 +185,15 @@ public abstract class AbstractDependencyGraphFactoryTestCase
 
         CollectionUtils.transform( actualNodes, new ToKeyTransformer() );
 
-        Collection<DependencyGraphNode> missingActualKeys = CollectionUtils.subtract( actualNodes, expectedNodeKeys );
-        for ( DependencyGraphNode key : missingActualKeys )
+        Collection<String> missingActualKeys = CollectionUtils.subtract( actualNodes, expectedNodeKeys );
+        for ( String key : missingActualKeys )
         {
             sb.append( "\n (Extra Actual) " ).append( key );
             fail = true;
         }
 
-        Collection<DependencyGraphNode> missingExpectedKeys = CollectionUtils.subtract( expectedNodeKeys, actualNodes );
-        for ( DependencyGraphNode key : missingExpectedKeys )
+        Collection<String> missingExpectedKeys = CollectionUtils.subtract( expectedNodeKeys, actualNodes );
+        for ( String key : missingExpectedKeys )
         {
             sb.append( "\n (Extra Expected) " ).append( key );
             fail = true;
@@ -237,8 +237,8 @@ public abstract class AbstractDependencyGraphFactoryTestCase
 
             CollectionUtils.transform( actualNodes, new ToKeyTransformer() );
 
-            Collection<DependencyGraphNode> missingActualKeys = CollectionUtils.subtract( actualNodes, expectedNodeKeys );
-            for ( DependencyGraphNode key : missingActualKeys )
+            Collection<String> missingActualKeys = CollectionUtils.subtract( actualNodes, expectedNodeKeys );
+            for ( String key : missingActualKeys )
             {
                 sb.append( "\n (Extra Actual) " ).append( key );
             }