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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14, 15
    • Fix Version/s: 15
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b11
    • Verification:
      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

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

                Dates

                Created:
                Updated:
                Resolved: