Checks for imports

The property checkstyle.ignore.imports controls whether to check import statements. The property type is boolean and defaults to false.

Unused imports

Checkstyle uses a simple but very reliable algorithm to report on unused import statements. An import statement is considered unused if:

Illegal imports

The property checkstyle.illegal.imports contains the set of import illegal package prefixes for import statements. The property type is string set and defaults to sun since programs that contain direct calls to the sun.* packages are not 100% Pure Java.


Copyright © 2002 Oliver Burn. All rights Reserved.