mirror of
https://github.com/java-diff-utils/java-diff-utils.git
synced 2026-03-13 10:11:17 +08:00
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user