From b3499dab794234449d52c7a402582849b9387e63 Mon Sep 17 00:00:00 2001 From: XZ-X Date: Fri, 23 Aug 2019 16:11:30 -0400 Subject: [PATCH] [Collections-727] fix the potential misleading comment: change the index boundary from > size() to >= size() (#82) --- .../commons/collections4/iterators/CollatingIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java index af1750308..960fa13ba 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/CollatingIterator.java @@ -174,7 +174,7 @@ public class CollatingIterator implements Iterator { * * @param index index of the Iterator to replace * @param iterator Iterator to place at the given index - * @throws IndexOutOfBoundsException if index < 0 or index > size() + * @throws IndexOutOfBoundsException if index < 0 or index >= size() * @throws IllegalStateException if iteration has started * @throws NullPointerException if the iterator is null */