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:
Stephen Colebourne 2005-05-24 22:39:51 +00:00
parent 4a6212148d
commit dc805aee2b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}