On Mon, 13 Apr 2026 10:20:44 GMT, Viktor Klang <[email protected]> wrote:

> Clarifying the Stream::reduce Javadoc
> 
> 
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Marked as reviewed by alanb (Reviewer).

src/java.base/share/classes/java/util/stream/Stream.java line 1006:

> 1004:      * Performs a <a 
> href="package-summary.html#Reduction">reduction</a> on the
> 1005:      * elements of this stream using the provided identity value, 
> accumulation
> 1006:      * function, and combining function.  This is equivalent to:

Looks fine, the 2-arg reduce already has it.

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

PR Review: https://git.openjdk.org/jdk/pull/30700#pullrequestreview-4099184515
PR Review Comment: https://git.openjdk.org/jdk/pull/30700#discussion_r3073444048

Reply via email to