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

Minor compiler cleanups relating to MandatoryWarningHandler

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 25
    • tools
    • jdk-25+5-72-g062f2dcfe5b

    • generic
    • generic

      After recent improvements to Lint-related classes, there are now a few cleanup opportunities relating to MandatoryWarningHandler.

      1. The new LintWarning class provides access to the associated lint category. This means that the LintCategory being passed to the MandatoryWarningHandler constructor is no longer being used.

      2. The prefix string being passed to the MandatoryWarningHandler constructor can (in most cases) instead be inferred as well.

      3. The field Check.sunApiHandler (which has type MandatoryWarningHandler) is no longer used and can be removed.

            acobbs Archie Cobbs
            acobbs Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: