From b418cbcdd4b8b200f5fe801469da1e3970eed634 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Fri, 17 Apr 2026 14:03:47 +0000 Subject: [PATCH] 8381418: Clarifying the identity Parameter in the Java Stream.reduce() Method Documentation Reviewed-by: liach, alanb --- src/java.base/share/classes/java/util/stream/Stream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/java/util/stream/Stream.java b/src/java.base/share/classes/java/util/stream/Stream.java index 1dd13133fe1..645f4f033b7 100644 --- a/src/java.base/share/classes/java/util/stream/Stream.java +++ b/src/java.base/share/classes/java/util/stream/Stream.java @@ -1002,8 +1002,8 @@ public interface Stream extends BaseStream> { /** * Performs a reduction on the - * elements of this stream, using the provided identity, accumulation and - * combining functions. This is equivalent to: + * elements of this stream using the provided identity value, accumulation + * function, and combining function. This is equivalent to: *
{@code
      *     U result = identity;
      *     for (T element : this stream)