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

(doc) Broken code snippet in the java.util.stream package documentation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Fixed
    • 14, 15
    • 15
    • core-libs
    • b11
    • Not verified

    Description

      In the java.util.stream.package-info.java file

      *
       * <pre>{@code
       * int sumOfWeights = widgets.<b>parallelStream()</b>
       * .filter(b -> b.getColor() == RED)
       * .mapToInt(b -> b.getWeight())
       * .sum();
       * }</pre>
       *

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: