JFR: Use message with Objects.requireNonNull

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 19
    • Affects Version/s: None
    • Component/s: 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");

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

              Created:
              Updated:
              Resolved: