Class EqualsGetClass

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.EqualsGetClass
All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, Suppressible, Serializable

public final class EqualsGetClass extends BugChecker implements BugChecker.MethodInvocationTreeMatcher
Discourages the use of Object.getClass() when implementing Object.equals(Object) for non-final classes.
Author:
ghm@google.com (Graeme Morgan)
See Also: