--- old/src/share/classes/java/util/LongSummaryStatistics.java 2013-07-05 16:26:46.930023587 -0700 +++ new/src/share/classes/java/util/LongSummaryStatistics.java 2013-07-05 16:26:43.182023654 -0700 @@ -46,14 +46,14 @@ * *
 {@code
  * LongSummaryStatistics stats = people.stream()
- *     .collect(Collectors.toLongSummaryStatistics(Person::getAge));
+ *     .collect(Collectors.summarizingLong(Person::getAge));
  *}
* * This computes, in a single pass, the count of people, as well as the minimum, * maximum, sum, and average of their ages in milliseconds. * * @implNote This implementation is not thread safe. However, it is safe to use - * {@link java.util.stream.Collectors#toLongSummaryStatistics(java.util.function.ToLongFunction) + * {@link java.util.stream.Collectors#summarizingLong(java.util.function.ToLongFunction) * Collectors.toLongStatistics()} on a parallel stream, because the parallel * implementation of {@link java.util.stream.Stream#collect Stream.collect()} * provides the necessary partitioning, isolation, and merging of results for