Simplify code in iterator remove to avoid incorrect ConcurrentModificationException
bug 34690, from Jack git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@178303 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a6212148d
commit
dc805aee2b
|
@ -1219,7 +1219,7 @@ public class FastArrayList extends ArrayList {
|
|||
get().remove(lastReturnedIndex);
|
||||
last--;
|
||||
expected = list;
|
||||
iter = get().listIterator(previousIndex());
|
||||
iter = get().listIterator(lastReturnedIndex);
|
||||
lastReturnedIndex = -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue