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

    • Subcomponent:
    • Resolved In Build:
      b132
    • Verification:
      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

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: