Class ResultUseRule.GlobalRule<C,S>
java.lang.Object
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule<C,S>
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.GlobalRule<C,S>
- Type Parameters:
C
- the type of the context object used during evaluationS
- the type of symbols
- Enclosing class:
ResultUseRule<C,
S>
A global rule that is evaluated when none of the more specific rules determine a
ResultUsePolicy
for a method.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
ResultUseRule.Evaluation<S>, ResultUseRule.GlobalRule<C,
S>, ResultUseRule.MethodRule<C, S, M extends S>, ResultUseRule.RuleScope, ResultUseRule.SymbolRule<C, S> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal com.google.common.collect.ImmutableSet
<ResultUseRule.RuleScope> scopes()
The scopes this rule applies to.Methods inherited from class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
evaluate, evaluate, id, toString
-
Constructor Details
-
GlobalRule
public GlobalRule()
-
-
Method Details
-
scopes
Description copied from class:ResultUseRule
The scopes this rule applies to.- Specified by:
scopes
in classResultUseRule<C,
S>
-