Class DoNotCallSuggester

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

public class DoNotCallSuggester extends BugChecker implements BugChecker.MethodTreeMatcher
If a method always throws an exception, consider annotating it with @DoNotCall to prevent calls at compile-time instead failing at runtime.
See Also: