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 */