Class ForOverrideChecker

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

public class ForOverrideChecker extends BugChecker implements BugChecker.MethodInvocationTreeMatcher, BugChecker.MethodTreeMatcher
Verifies that methods marked ForOverride are only called from the defining class.

Specifically, all calls to the method have to occur within the context of the outermost class where the method is defined.

See Also: