Skip to content

Commit 5c72a98

Browse files
committed
Fix all hashCodes
1 parent 1c1db36 commit 5c72a98

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pkgs.stdenvNoCC.mkDerivation rec {
137137
checkPhase = ''
138138
runHook preTest
139139
140-
mvn --offline -Dmaven.repo.local="$mavenRepo" test
140+
MAVEN_OPTS='-XX:+UnlockExperimentalVMOptions -XX:hashCode=2' mvn --offline -Dmaven.repo.local="$mavenRepo" test
141141
142142
runHook postTest
143143
'';

src/main/java/org/variantsync/diffdetective/variation/diff/construction/GumTreeDiff.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public static <B extends VariationNode<B, L>, L extends Label> DiffNode<L> diffU
9797
}
9898

9999
// We assume that the root nodes are matched.
100+
System.out.println("first assertConsistency");
100101
matching.assertConsistency();
101102
if (!matching.has(src, dst)) {
102103
System.out.println("-----------------------------------------------------------");
@@ -118,6 +119,7 @@ public static <B extends VariationNode<B, L>, L extends Label> DiffNode<L> diffU
118119
for (var mapping : matching) {
119120
System.out.println(mapping.first + " <-> " + mapping.second);
120121
}
122+
System.out.println("second assertConsistency");
121123
matching.assertConsistency();
122124

123125
removeUnmapped(matching, src);

0 commit comments

Comments
 (0)