8177653: clarify restrictions on Iterator.forEachRemaining

Reviewed-by: martin
This commit is contained in:
Stuart Marks 2017-03-31 14:21:21 -07:00
parent 4935556d43
commit 8e3c3cf9ef

View File

@ -109,7 +109,8 @@ public interface Iterator<E> {
* Exceptions thrown by the action are relayed to the caller.
* <p>
* The behavior of an iterator is unspecified if the action modifies the
* collection in any way (even by calling the {@link #remove remove} method),
* collection in any way (even by calling the {@link #remove remove} method
* or other mutator methods of {@code Iterator} subtypes),
* unless an overriding class has specified a concurrent modification policy.
* <p>
* Subsequent behavior of an iterator is unspecified if the action throws an