RFR: JDK-8133773: clarify specification of Spliterator.tryAdvance [v2]

Roger Riggs rriggs at openjdk.org
Mon May 8 21:03:14 UTC 2023


On Mon, 8 May 2023 19:07:17 GMT, Viktor Klang <duke at openjdk.org> wrote:

>> Attempting to make the "at-most once" nature, of invoking the supplied action to tryAdvance, clearer in the JavaDoc.
>
> Viktor Klang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update src/java.base/share/classes/java/util/Spliterator.java
>   
>   Co-authored-by: Paul Sandoz <paul.d.sandoz at googlemail.com>

src/java.base/share/classes/java/util/Spliterator.java line 298:

> 296: public interface Spliterator<T> {
> 297:     /**
> 298:      * If a remaining element exists: performs the given action on it,

I'm not sure the ":" is an improvement on the ",". 
"If the remaining element exists, the action is performed on it, ..."

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13860#discussion_r1187894350


More information about the core-libs-dev mailing list