Relates :
|
A few functions renamed with JDK-8015318 kept old names in the comments. diff -r 5b45a5efe417 src/share/classes/java/util/DoubleSummaryStatistics.java --- a/src/share/classes/java/util/DoubleSummaryStatistics.java +++ b/src/share/classes/java/util/DoubleSummaryStatistics.java @@ -54,7 +54,7 @@ * * @implNote This implementation is not thread safe. However, it is safe to use * {@link java.util.stream.Collectors#summarizingDouble(java.util.function.ToDoubleFunction) - * Collectors.toDoubleStatistics()} on a parallel stream, because the parallel + * Collectors.summarizingDouble()} 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 * safe and efficient parallel execution. diff -r 5b45a5efe417 src/share/classes/java/util/IntSummaryStatistics.java --- a/src/share/classes/java/util/IntSummaryStatistics.java +++ b/src/share/classes/java/util/IntSummaryStatistics.java @@ -54,7 +54,7 @@ * * @implNote This implementation is not thread safe. However, it is safe to use * {@link java.util.stream.Collectors#summarizingInt(java.util.function.ToIntFunction) - * Collectors.toIntStatistics()} on a parallel stream, because the parallel + * Collectors.summarizingInt()} 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 * safe and efficient parallel execution. diff -r 5b45a5efe417 src/share/classes/java/util/LongSummaryStatistics.java --- a/src/share/classes/java/util/LongSummaryStatistics.java +++ b/src/share/classes/java/util/LongSummaryStatistics.java @@ -42,7 +42,7 @@ * }</pre> * * <p>{@code LongSummaryStatistics} can be used as a - * {@linkplain java.util.stream.Stream#collect(Collector)} reduction} + * {@linkplain java.util.stream.Stream#collect(Collector) reduction} * target for a {@linkplain java.util.stream.Stream stream}. For example: * * <pre> {@code @@ -55,7 +55,7 @@ * * @implNote This implementation is not thread safe. However, it is safe to use * {@link java.util.stream.Collectors#summarizingLong(java.util.function.ToLongFunction) - * Collectors.toLongStatistics()} on a parallel stream, because the parallel + * Collectors.summarizingLong()} 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 * safe and efficient parallel execution.