title: Javac configuration parameter for unused include warnings?
body: <p>Is there a Sun command line parameter to provide warnings (or errors) in reference to unused <code>import</code> statements?  The embedded eclipse javac compiler provides such warnings, but if the Sun / Oracle compiler has it as one of their <code>-Xlint:XXX</code> arguments, it is not well documented.</p>
  
  <p>I'm looking to clean up an existing Java code base, which builds from the command line using Ant, and I would like integrate tracking and reporting of such statements into the nightly builds.</p>
  
  <p>Some have suggested that imports have no effect on the compilation process, however looking at the compiler operations (with the -verbose flag) indicates that the compiler loads the imported classes unconditionally, even if they are not used in the written output.  So, removing unused imports seems to have more benefits than just code comprehension at a glance.</p>