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

Lint warning for annotation type without explicit @Target

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P5
    • tbd
    • 7
    • tools
    • generic
    • generic

    Description

      Good style when declaring an annotation type is to include an explicit @Target meta-annotation to declare what kinds of elements the annotation type is applicable too. If a annotatio type lacks an @Target, a lint warning could be issued.

      Attachments

        Activity

          People

            jlahoda Jan Lahoda
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: