summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-03-17 15:32:43 +0000
committerBrett Porter <brett@apache.org>2009-03-17 15:32:43 +0000
commit26a9c2edfc949b32adba01d947599f776a138203 (patch)
tree6efd4f5339cab99f655c78ec5c1828f633c904c7
parentc5d079a9a4ffda20611efee6260bbc3179769829 (diff)
downloadarchiva-26a9c2edfc949b32adba01d947599f776a138203.tar.gz
archiva-26a9c2edfc949b32adba01d947599f776a138203.zip
restore previous behaviour, though it appears wrong
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755281 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-dependency-graph/src/main/java/org/apache/maven/archiva/dependency/graph/tasks/RefineConflictsVisitor.java10
-rw-r--r--archiva-modules/archiva-base/archiva-dependency-graph/src/test/java/org/apache/maven/archiva/dependency/graph/AbstractDependencyGraphFactoryTestCase.java12
2 files changed, 12 insertions, 10 deletions
diff --git a/archiva-modules/archiva-base/archiva-dependency-graph/src/main/java/org/apache/maven/archiva/dependency/graph/tasks/RefineConflictsVisitor.java b/archiva-modules/archiva-base/archiva-dependency-graph/src/main/java/org/apache/maven/archiva/dependency/graph/tasks/RefineConflictsVisitor.java
index 158edaa59..acf0a517c 100644
--- a/archiva-modules/archiva-base/archiva-dependency-graph/src/main/java/org/apache/maven/archiva/dependency/graph/tasks/RefineConflictsVisitor.java
+++ b/archiva-modules/archiva-base/archiva-dependency-graph/src/main/java/org/apache/maven/archiva/dependency/graph/tasks/RefineConflictsVisitor.java
@@ -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;
}
}
diff --git a/archiva-modules/archiva-base/archiva-dependency-graph/src/test/java/org/apache/maven/archiva/dependency/graph/AbstractDependencyGraphFactoryTestCase.java b/archiva-modules/archiva-base/archiva-dependency-graph/src/test/java/org/apache/maven/archiva/dependency/graph/AbstractDependencyGraphFactoryTestCase.java
index 1413b36ce..908ee3f8d 100644
--- a/archiva-modules/archiva-base/archiva-dependency-graph/src/test/java/org/apache/maven/archiva/dependency/graph/AbstractDependencyGraphFactoryTestCase.java
+++ b/archiva-modules/archiva-base/archiva-dependency-graph/src/test/java/org/apache/maven/archiva/dependency/graph/AbstractDependencyGraphFactoryTestCase.java
@@ -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 );
}