File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/main/java/com/github/difflib/patch Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1919 */
2020package com .github .difflib .patch ;
2121
22+ import static java .util .Comparator .comparing ;
2223import com .github .difflib .algorithm .Change ;
23- import static com .github .difflib .patch .DeltaType .DELETE ;
24- import static com .github .difflib .patch .DeltaType .INSERT ;
2524import java .util .ArrayList ;
26- import java .util .Collections ;
27- import static java .util .Comparator .comparing ;
2825import java .util .List ;
2926import java .util .ListIterator ;
3027
@@ -93,7 +90,7 @@ public void addDelta(AbstractDelta<T> delta) {
9390 * @return the deltas
9491 */
9592 public List <AbstractDelta <T >> getDeltas () {
96- Collections .sort (deltas , comparing (d -> d .getSource ().getPosition ()));
93+ deltas .sort (comparing (d -> d .getSource ().getPosition ()));
9794 return deltas ;
9895 }
9996
You can’t perform that action at this time.
0 commit comments