class LoggerWithWrongModifiersRule extends AbstractAstVisitorRule
Logger objects should be declared private, static and final. The exception is, when derived classes should use logger objects. Then they should be declared protected, non-static and final. This rule find loggers that are not declared with these modifiers.
Fields inherited from class | Fields |
---|---|
class AbstractAstVisitorRule |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME |
Type | Name and description |
---|---|
boolean |
allowNonStaticLogger |
boolean |
allowProtectedLogger |
java.lang.Class |
astVisitorClass |
java.lang.String |
name |
int |
priority |
Constructor and description |
---|
LoggerWithWrongModifiersRule
() |
Groovy Documentation