This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new f05568bc9 Narrow failure condition f05568bc9 is described below commit f05568bc9b9b13219015b1056fc7a11ad3853db2 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Oct 20 09:06:24 2024 -0400 Narrow failure condition --- .../commons/collections4/collection/AbstractCollectionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java index 6152f4c0c..2734027c9 100644 --- a/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java +++ b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java @@ -825,9 +825,9 @@ public abstract class AbstractCollectionTest<E> extends AbstractObjectTest { } resetFull(); + final Iterator<E> iter = getCollection().iterator(); + getCollection().clear(); try { - final Iterator<E> iter = getCollection().iterator(); - getCollection().clear(); iter.next(); fail("next after clear should raise ConcurrentModification"); } catch (final ConcurrentModificationException | NoSuchElementException e) {