Skip to content

Commit 22bd347

Browse files
committed
1 parent b7c9ff2 commit 22bd347

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/difflib/algorithm/myers/MyersDiff.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public PathNode buildPath(final List<T> orig, final List<T> rev)
161161
// orig and rev are zero-based
162162
// but the algorithm is one-based
163163
// that's why there's no +1 when indexing the sequences
164-
while (i < N && j < M && equals(orig.get(i), rev.get(j))) {
164+
while (i < N && j < M && equalizer.equals(orig.get(i), rev.get(j))) {
165165
i++;
166166
j++;
167167
}
@@ -182,10 +182,6 @@ public PathNode buildPath(final List<T> orig, final List<T> rev)
182182
throw new DifferentiationFailedException("could not find a diff path");
183183
}
184184

185-
private boolean equals(T orig, T rev) {
186-
return equalizer.equals(orig, rev);
187-
}
188-
189185
/**
190186
* Constructs a {@link Patch} from a difference path.
191187
*

0 commit comments

Comments
 (0)