com.puppycrawl.tools.checkstyle.checks.imports
public class UnusedImportsCheck extends DeclarationCollector
Checks for unused import statements.
An example of how to configure the check is:
<module name="UnusedImports"/>Compatible with Java 1.5 source.
Version: 1.1
| Constructor Summary | |
|---|---|
| UnusedImportsCheck() Default constructor. | |
| Method Summary | |
|---|---|
| void | beginTree(DetailAST aRootAST) {@inheritDoc} |
| void | finishTree(DetailAST aRootAST) {@inheritDoc} |
| int[] | getDefaultTokens() {@inheritDoc} |
| int[] | getRequiredTokens() {@inheritDoc} |
| void | visitToken(DetailAST aAST) {@inheritDoc} |