JDK-6970749 : javac could provide warnings for unused local variables and private fields
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2010-07-21
  • Updated: 2018-02-16
  • Resolved: 2018-02-16
Related Reports
Relates :  
Relates :  
Relates :  
Description
Review feedback on the implementation of Project Coin's ARM blocks/try-with-resources statement noted that a warning is issued for an unused resource variables but that an analagous warnings is not used for other kinds of unused local variables.  For consistency, a general unused local variable warning may be helpful.

Comments
this is currently something that is being done by the IDEs, I don't think javac should take care of this
16-02-2018