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

Viktor Klang vklang at openjdk.org
Wed Nov 8 17:48:01 UTC 2023


On Wed, 8 Nov 2023 17:20:56 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 444:
> 
>> 442:      */
>> 443:     static <T, A, R> Gatherer<T, A, R> of(
>> 444:             Supplier<A> initializer,
> 
> wildcards are missing here too, Supplier<? extends A>, Integrator<? super A, ? super T, ? extends R> and BiConsumer<? super A, ? super Downstream<? super R>>.

See separate discussion on PECS.

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

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


More information about the core-libs-dev mailing list