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

Colllectors toMap error in documentation

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      toMap(Functions.identity(),

      There is no "Functions.identity()," plural.
      the correct would be "Function.identity()" singular!

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Function.identity
      ACTUAL -
      Functions.identity

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

            aroy Abhijit Roy (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: