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

Allow SuppressWarnings to be used in all declaration contexts

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 19
    • 19
    • core-libs
    • b08

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: