com.puppycrawl.tools.checkstyle.checks.imports
public class RedundantImportCheck extends Check
Checks for imports that are redundant. An import statement is considered redundant if:
java.lang
package. For example importing java.lang.String.An example of how to configure the check is:
<module name="RedundantImport"/>Compatible with Java 1.5 source.
Version: 1.0
| Method Summary | |
|---|---|
| void | beginTree(DetailAST aRootAST) |
| int[] | getDefaultTokens() |
| void | visitToken(DetailAST aAST) |