8168841: The JavaDoc of java.util.stream.Collectors method collectingAndThen has incorrect code snippet
Reviewed-by: smarks, lancea, tvaleev
--- 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:
* <pre>{@code
- * List<String> people
+ * List<String> list
* = people.stream().collect(collectingAndThen(toList(), Collections::unmodifiableList));
* }</pre>
*