File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Original file line number Diff line number Diff line change 18
18
import difflib .myers .MyersDiff ;
19
19
20
20
import java .util .ArrayList ;
21
- import java .util .Collections ;
22
- import java .util .Comparator ;
23
21
import java .util .List ;
24
22
import java .util .regex .Matcher ;
25
23
import java .util .regex .Pattern ;
@@ -189,13 +187,7 @@ public static List<String> generateUnifiedDiff(String original, String revised,
189
187
ret .add ("+++ " + revised );
190
188
191
189
if (!patch .getDeltas ().isEmpty ()) {
192
- // Hmm, I thought the Deltas were sorted already... turns out they're not.
193
190
List <Delta > patchDeltas = new ArrayList <Delta >(patch .getDeltas ());
194
- Collections .sort (patchDeltas , new Comparator <Delta >() {
195
- public int compare (Delta a , Delta b ) {
196
- return new Integer (a .getOriginal ().getPosition ()).compareTo (b .getOriginal ().getPosition ());
197
- }
198
- });
199
191
200
192
// code outside the if block also works for single-delta issues.
201
193
List <Delta > deltas = new ArrayList <Delta >(); // current list of Delta's to process
You can’t perform that action at this time.
0 commit comments