From 530da2782ab8f24bad27975144f081645c890229 Mon Sep 17 00:00:00 2001 From: Paul Sandoz Date: Tue, 1 Nov 2016 17:29:49 -0700 Subject: [PATCH] 8168841: The JavaDoc of java.util.stream.Collectors method collectingAndThen has incorrect code snippet Reviewed-by: smarks, lancea, tvaleev --- .../java.base/share/classes/java/util/stream/Collectors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/java/util/stream/Collectors.java b/jdk/src/java.base/share/classes/java/util/stream/Collectors.java index fd7b0a477fa..aaa8c465966 100644 --- a/jdk/src/java.base/share/classes/java/util/stream/Collectors.java +++ b/jdk/src/java.base/share/classes/java/util/stream/Collectors.java @@ -508,7 +508,7 @@ public final class Collectors { * transformation. For example, one could adapt the {@link #toList()} * collector to always produce an immutable list with: *
{@code
-     *     List people
+     *     List list
      *         = people.stream().collect(collectingAndThen(toList(), Collections::unmodifiableList));
      * }
*