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

Copy-paste typo in the spec for j.u.Comparator.thenComparing(Function, Comparator)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • None
    • core-libs
    • b108
    • Verified

    Description

      The spec
      http://download.java.net/jdk8/docs/api/java/util/Comparator.html#thenComparing%28java.util.function.Function,%20java.util.Comparator%29

      says:

      "Throws:
          NullPointerException - if the argument is null"

      Seems like it should be "if either argument is null"

      Attachments

        Activity

          People

            henryjen Henry Jen
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: