Package com.google.errorprone.matchers
Class IsNonNullMatcher
java.lang.Object
com.google.errorprone.matchers.IsNonNullMatcher
- All Implemented Interfaces:
Matcher<com.sun.source.tree.ExpressionTree>
,Serializable
public final class IsNonNullMatcher extends Object implements Matcher<com.sun.source.tree.ExpressionTree>
Matches expressions that can be statically determined to be non-null. The matcher should have few
if any false positives but has many, many false negatives.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IsNonNullMatcher()
-
Method Summary
Modifier and Type Method Description boolean
matches(com.sun.source.tree.ExpressionTree tree, VisitorState state)