Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043772

Typos in Double/Int/LongSummaryStatistics.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b15
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                igerasim Ivan Gerasimov (Inactive)
                Reporter:
                igerasim Ivan Gerasimov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: