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

Add javac lint warning when the @Deprecated annotation is used where it is a no-op

    XMLWordPrintable

Details

    • b132
    • Verified

    Description

      While the @Deprecated annotation can be applied most everywhere, there are several uses of it that are specified as being no-ops (JDK-6481080):

      * parameters
      * local variables
      * package declarations

      It could be helpful if javac's -Xlint:deprecation warning including a warning for no-op uses of @Deprecated.

      Attachments

        Issue Links

          Activity

            People

              sadayapalam Srikanth Adayapalam
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: