Rule that checks for private fields that are only set within a constructor or field initializer. Such fields can safely be made final.
| Type | Name and description |
|---|---|
Class |
astVisitorClass |
String |
ignoreFieldNames |
boolean |
ignoreJpaEntities |
String |
name |
int |
priority |
| Type | Name and description |
|---|---|
protected List<Violation> |
getViolations(AstVisitor visitor, SourceCode sourceCode) |
boolean |
isDefinedInJpaEntity(org.codehaus.groovy.ast.FieldNode fieldNode) |