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

Add warnings for unused variables and methods

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • None
    • None
    • tools
    • The JDeveloper IDE would be able to use this which would make their Audit tool faster.

    Description

      Please add -Xlint warnings for unused local variables, unused parameters, unused private fields and unused private methods. Such warnings can be used by Auditing tools, hooking into JSR199 Javac, to offer fixes to remove any unused variables/methods.
      See also JDK-4963930 which asks for an -Xlint warning to detect unused imports.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              kbronkho Keimpe Bronkhorst (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: