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

JFR: Use message with Objects.requireNonNull

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • None
    • hotspot
    • None
    • jfr
    • b12

      The Flight Recorder API checks for null parameters, for example Objects.requireNonNull(action), but it doesn't provide information about which parameter that was null.

      It would be easier to debug if the parameter name was provided as a message, for example Objects.requireNonNull(action, "action");

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: