File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/difflib/patch Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public List<T> applyTo(List<T> target) throws PatchFailedException {
4444 List <T > result = new LinkedList <>(target );
4545 ListIterator <Delta <T >> it = getDeltas ().listIterator (deltas .size ());
4646 while (it .hasPrevious ()) {
47- Delta <T > delta = ( Delta < T >) it .previous ();
47+ Delta <T > delta = it .previous ();
4848 delta .applyTo (result );
4949 }
5050 return result ;
@@ -60,7 +60,7 @@ public List<T> restore(List<T> target) {
6060 List <T > result = new LinkedList <>(target );
6161 ListIterator <Delta <T >> it = getDeltas ().listIterator (deltas .size ());
6262 while (it .hasPrevious ()) {
63- Delta <T > delta = ( Delta < T >) it .previous ();
63+ Delta <T > delta = it .previous ();
6464 delta .restore (result );
6565 }
6666 return result ;
You can’t perform that action at this time.
0 commit comments