You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/08/23 20:11:34 UTC
[commons-collections] branch master updated: [Collections-727] fix
the potential misleading comment: change the index boundary from > size()
to >= size() (#82)
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 b3499da [Collections-727] fix the potential misleading comment: change the index boundary from > size() to >= size() (#82)
b3499da is described below
commit b3499dab794234449d52c7a402582849b9387e63
Author: XZ-X <x1...@icloud.com>
AuthorDate: Fri Aug 23 16:11:30 2019 -0400
[Collections-727] fix the potential misleading comment: change the index boundary from > size() to >= size() (#82)
---
.../org/apache/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 af17503..960fa13 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<E> implements Iterator<E> {
*
* @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
*/