This rule is defined by the following XPath expression:
.[count(ImportDeclaration[@Static = 'true']) > $maximumStaticImports]
Example:
import static Lennon; import static Ringo; import static George; import static Paul; import static Yoko; // Too much !
This rule has the following properties:
Name | Default value | Description |
---|---|---|
maximumStaticImports | All static imports can be disallowed by setting this to 0 |