class FinalClassWithProtectedMemberRule extends AbstractAstVisitorRule
This rule finds classes marked final that contain protected methods and fields. If a class is final then it may not be subclassed, and there is therefore no point in having a member with protected visibility. Either the class should not be final or the member should be private or protected.
| 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 |
|---|---|
java.lang.Class |
astVisitorClass |
java.lang.String |
name |
int |
priority |
| Constructor and description |
|---|
FinalClassWithProtectedMemberRule
() |
Groovy Documentation