Uses of Class
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
Packages that use ResultUseRule
-
Uses of ResultUseRule in com.google.errorprone.bugpatterns.checkreturnvalue
Subclasses of ResultUseRule in com.google.errorprone.bugpatterns.checkreturnvalueModifier and TypeClassDescriptionfinal class
External source of information about @CanIgnoreReturnValue-equivalent API's.final class
A rule that enables checking for methods belonging to a set of packages or any of their subpackages.static class
A global rule that is evaluated when none of the more specific rules determine aResultUsePolicy
for a method.static class
ResultUseRule.MethodRule<C,
S, M extends S> A rule that evaluates methods and constructors to determine aResultUsePolicy
for them.static class
A rule that evaluates symbols of any kind to determine aResultUsePolicy
to associate with them.Methods in com.google.errorprone.bugpatterns.checkreturnvalue that return ResultUseRuleModifier and TypeMethodDescriptionstatic ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> AutoValueRules.autoBuilders()
Returns a rule forabstract
methods on@AutoBuilder
types.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> AutoValueRules.autoValueBuilders()
Returns a rule forabstract
methods on@AutoValue.Builder
types.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> AutoValueRules.autoValues()
Returns a rule forabstract
methods on@AutoValue
types.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> ExternalCanIgnoreReturnValue.externalIgnoreList()
Returns a rule using an external list of APIs to ignore.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> Rules.globalDefault
(Optional<ResultUsePolicy> methodDefault, Optional<ResultUsePolicy> constructorDefault) Returns a simple global rule that always returns the given defaults for methods and constructors.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> Rules.mapAnnotationSimpleName
(String simpleName, ResultUsePolicy policy) static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> ProtoRules.mutableProtos()
Returns a rule that handles mutable protos, making their fluent setter methods' results ignorable.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> ProtoRules.protoBuilders()
Returns a rule that handles proto builders, making their fluent setter methods' results ignorable.abstract ResultUseRule<?,
S> ResultUseRule.Evaluation.rule()
The rule that made this evaluation.Methods in com.google.errorprone.bugpatterns.checkreturnvalue with parameters of type ResultUseRuleModifier and TypeMethodDescriptionResultUsePolicyEvaluator.Builder.addRule
(ResultUseRule<C, S> rule) Adds the givenrule
.ResultUsePolicyEvaluator.Builder.addRules
(ResultUseRule<C, S>... rules) Adds all the givenrules
.static <S> ResultUseRule.Evaluation<S>
ResultUseRule.Evaluation.create
(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates a newResultUseRule.Evaluation
.Method parameters in com.google.errorprone.bugpatterns.checkreturnvalue with type arguments of type ResultUseRuleModifier and TypeMethodDescriptionResultUsePolicyEvaluator.Builder.addRules
(Iterable<? extends ResultUseRule<C, S>> rules) Adds all the givenrules
.