参照先: 説明
クラス | 説明 |
---|---|
AvoidStarImportCheck |
Check that finds import statements that use the * notation.
|
AvoidStaticImportCheck |
Check that finds static imports.
|
IllegalImportCheck |
Checks for imports from a set of illegal packages.
|
ImportControlCheck |
Check that controls what packages can be imported in each package.
|
ImportOrderCheck |
groups imports: ensures that groups of imports come in a specific order
(e.g., java. comes first, javax. comes second, then everything else)
adds a separation between groups : ensures that a blank line sit between
each group
sorts imports inside each group: ensures that imports within each group
are in lexicographic order
sorts according to case: ensures that the comparison between import is
case sensitive
groups static imports: ensures that static imports are at the top (or the
bottom) of all the imports, or above (or under) each group, or are treated
like non static imports (@see
ImportOrderOption
Example:
<module name="ImportOrder">
<property name="groups" value="java,javax"/>
<property name="ordered" value="true"/>
<property name="caseSensitive" value="false"/>
<property name="option" value="above"/>
</module>
Group descriptions enclosed in slashes are interpreted as regular
expressions. |
RedundantImportCheck |
Checks for imports that are redundant.
|
UnusedImportsCheck |
Checks for unused import statements.
|
列挙型 | 説明 |
---|---|
ImportOrderOption |
Represents the policy for checking import order statements.
|
Copyright © 2001-2013. All Rights Reserved.