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

Allow SuppressWarnings to be used in all declaration contexts

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • 19
    • core-libs
    • b08

      The SuppressWarnings annotation type is declared have multiple targets, including modules; however, "package" is left off of its target list. As package-info file are another kind of declaration where a compiler could give warnings, allowing SuppressWarnings in that case is reasonable.

      Wanting SuppressWarnings in package-info file came up while working on doclint warnings (JDK-8280534).

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: