org.codenarc.rule.basic
Class EqualsAndHashCodeRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.basic.EqualsAndHashCodeRule
class EqualsAndHashCodeRule
extends AbstractAstVisitorRule
Rule that checks that if either the boolean equals(Object)
or
the int hashCode()
methods are overridden within a class, then both must be overridden.
- author:
- Chris Mair
- version:
- $Revision: 117 $ - $Date: 2009-04-03 21:07:32 -0400 (Fri, 03 Apr 2009) $
Methods inherited from class AbstractRule
|
applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport |
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
EqualsAndHashCodeRule
EqualsAndHashCodeRule()
-
Groovy Documentation