The sample source fragment in the javadoc for the method
Iterators.peekingIterator has the following (Java) comment:
// Either the next three calls will each throw
// NoSuchElementExceptions, or...
It's confusing because if the first of the following calls to peek() throws
NoSuchElementException, the following two calls to peek() won't be reached.
A simple rewording of the comment would fix this, e.g.,
// Either the first call to peek() will throw
// NoSuchElementException, or...
Original issue reported on code.google.com by tpeie...@gmail.com on 11 Mar 2009 at 2:34
Original issue reported on code.google.com by
tpeie...@gmail.com
on 11 Mar 2009 at 2:34