Rule that checks for private fields that are not referenced within the same class.
TheignoreFieldNames
property optionally specifies one or more
(comma-separated) field names that should be ignored (i.e., that should not cause a
rule violation). The name(s) may optionally include wildcard characters ('*' or '?').
Type | Name and description |
---|---|
String |
ignoreFieldNames |
String |
name |
int |
priority |
Type Params | Return Type | Name and description |
---|---|---|
|
protected AstVisitor |
getAstVisitor(SourceCode sourceCode) |
|
protected List<Violation> |
getViolations(AstVisitor visitor, SourceCode sourceCode) |