RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

Rémi Forax forax at openjdk.org
Wed Nov 8 17:29:12 UTC 2023


On Wed, 8 Nov 2023 17:22:05 GMT, Rémi Forax <forax at openjdk.org> wrote:

>> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461)
>
> src/java.base/share/classes/java/util/stream/Gatherer.java line 490:
> 
>> 488:          *         more elements sent to it, {@code false} if otherwise
>> 489:          */
>> 490:         default boolean isRejecting() { return false; }
> 
> Is it really a good default ?

It is not better to have 2 Downstream (Downstream and a subtype) like you hae two integrators (Integrator and Greedy)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1386972223


More information about the core-libs-dev mailing list