[Collections-727] fix the potential misleading comment: change the index boundary from > size() to >= size() (#82)
This commit is contained in:
parent
1118a1ccdd
commit
b3499dab79
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue