Class PreconditionsExpensiveString

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

public class PreconditionsExpensiveString extends BugChecker implements BugChecker.MethodInvocationTreeMatcher
Error checker for calls to the Preconditions class in Guava which use 'expensive' methods of producing the error string. In most cases, users are better off using the equivalent methods which defer the computation of the string until the test actually fails.
Author:
sjnickerson@google.com (Simon Nickerson)
See Also: