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

Predicate::not should explicitly mention "NullPointerException - if target is null"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b19

      Backports

        Description

        In j.u.f.Predicate spec
        https://docs.oracle.com/javase/10/docs/api/java/util/function/Predicate.html
        it is common to explicitly mention NPE throwing.
        Predicate::not deserves to have it specified as well

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jlaskey Jim Laskey
                  Reporter:
                  dbessono Dmitry Bessonov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: