This commit is contained in:
wumpz
2017-04-03 15:20:19 +02:00
parent b7c9ff234e
commit 22bd3472d7

View File

@@ -161,7 +161,7 @@ public class MyersDiff<T> implements DiffAlgorithm<T> {
// orig and rev are zero-based
// but the algorithm is one-based
// that's why there's no +1 when indexing the sequences
while (i < N && j < M && equals(orig.get(i), rev.get(j))) {
while (i < N && j < M && equalizer.equals(orig.get(i), rev.get(j))) {
i++;
j++;
}
@@ -182,10 +182,6 @@ public class MyersDiff<T> implements DiffAlgorithm<T> {
throw new DifferentiationFailedException("could not find a diff path");
}
private boolean equals(T orig, T rev) {
return equalizer.equals(orig, rev);
}
/**
* Constructs a {@link Patch} from a difference path.
*