[Collections-727] fix the potential misleading comment: change the index boundary from > size() to >= size() (#82)

This commit is contained in:
XZ-X 2019-08-23 16:11:30 -04:00 committed by Gary Gregory
parent 1118a1ccdd
commit b3499dab79
1 changed files with 1 additions and 1 deletions

View File

@ -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 &lt; 0 or index &gt; size()
* @throws IndexOutOfBoundsException if index &lt; 0 or index &gt;= size()
* @throws IllegalStateException if iteration has started
* @throws NullPointerException if the iterator is null
*/