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

Viktor Klang vklang at openjdk.org
Wed Nov 8 15:41:32 UTC 2023


On Wed, 1 Nov 2023 15:40:23 GMT, Brian Goetz <briangoetz at openjdk.org> wrote:

>Since you validate that previous^2.next == previous, you might just omit the previousStage parameter and derive it in the body.

@briangoetz It was a bit of additional safety to make sure that the caller gets what they want. If the prev-prev was omitted here then this ctor would have the same signature as the other ctor.
(Note that this is internal API.)

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

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


More information about the core-libs-dev mailing list