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)); * }