Skip to content

Commit 9965544

Browse files
committed
removed casts
1 parent 1151905 commit 9965544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/difflib/patch/Patch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)