From dc805aee2b7ab57d8c358abc5bc9aa16e903e8b0 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Tue, 24 May 2005 22:39:51 +0000 Subject: [PATCH] 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 --- src/java/org/apache/commons/collections/FastArrayList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/commons/collections/FastArrayList.java b/src/java/org/apache/commons/collections/FastArrayList.java index ded6e9176..53403c510 100644 --- a/src/java/org/apache/commons/collections/FastArrayList.java +++ b/src/java/org/apache/commons/collections/FastArrayList.java @@ -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; }