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

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


On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang <vklang at openjdk.org> wrote:

> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461)

src/java.base/share/classes/java/util/stream/GathererOp.java line 232:

> 230:      */
> 231:     @SuppressWarnings("unchecked")
> 232:     private GathererOp(Gatherer<T, A, R> gatherer, GathererOp<?, ?, T> upstream) {

Is it not better to use a static method named by example `fuse`, i don't understand why it has to be a constructor.

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

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


More information about the core-libs-dev mailing list