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) |
| void | finishTree(DetailAST aRootAST) |
| int[] | getDefaultTokens() |
| int[] | getRequiredTokens() |
| void | visitToken(DetailAST aAST) |