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

Collectors.toMap studentToGPA example uses Functions.identity()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8, 9
    • core-libs

      A DESCRIPTION OF THE PROBLEM :
      Doc examples have "Functions.identity()", and "Functions" doesn't exist.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Examples should have "Function.identity()", using "Function"
      ACTUAL -
      Functions.identity()

      URL OF FAULTY DOCUMENTATION :
      http://docs.oracle.com/javase/8/docs/api/java/util/stream/Collectors.html#toMap-java.util.function.Function-java.util.function.Function-

            psandoz Paul Sandoz
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: