# HG changeset patch # User psandoz # Date 1478046589 25200 # Node ID 12d848e1dd2ec309e31cac338a2c6558bd7d8eea # Parent 224facf0da6ef511b5d0c04dd96eb6a5be953d6f 8168841: The JavaDoc of java.util.stream.Collectors method collectingAndThen has incorrect code snippet Reviewed-by: smarks, lancea, tvaleev diff -r 224facf0da6e -r 12d848e1dd2e jdk/src/java.base/share/classes/java/util/stream/Collectors.java --- a/jdk/src/java.base/share/classes/java/util/stream/Collectors.java Tue Nov 01 17:29:48 2016 -0700 +++ b/jdk/src/java.base/share/classes/java/util/stream/Collectors.java Tue Nov 01 17:29:49 2016 -0700 @@ -508,7 +508,7 @@ * 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));
      * }
*