Package com.google.errorprone.bugpatterns.checkreturnvalue
package com.google.errorprone.bugpatterns.checkreturnvalue
-
ClassDescriptionRepresents a Java method or constructor.Utility method to produce
Api
objects from javacSymbol.MethodSymbol
.Rules for@AutoValue
,@AutoValue.Builder
, and@AutoBuilder
types.Discourages builder instance methods that do not return 'this'.Checker that recommends annotating a method with@CanIgnoreReturnValue
if the method returnsthis
, returns an effectively final input param, or if it looks like a builder method (that is likely to returnthis
).Rules for methods on DaggerComponent.Builder
andSubcomponent.Builder
types.Error messages used byCheckReturnValue
.External source of information about @CanIgnoreReturnValue-equivalent API's.Checker that "pushes" the@CanIgnoreReturnValue
annotation down from classes to methods.A rule that enables checking for methods belonging to a set of packages or any of their subpackages.Rules for methods on proto messages and builders.Policy for use of a method or constructor's result.An object that can report on the behavior of a CRV-related check for analysis purposes.ResultUsePolicyEvaluator<C,S, M extends S> Evaluates methods and their enclosing classes and packages to determine aResultUsePolicy
for the methods.ResultUsePolicyEvaluator.Builder<C,S, M extends S> Builder forResultUsePolicyEvaluator
.ResultUsePolicyEvaluator.MethodInfo<C,S, M extends S> Delegate to return information about a method symbol.What kind a method symbol is, and what scopes apply to it.ResultUseRule<C,S> A rule for determiningResultUsePolicy
for methods and/or constructors.An evaluation that a rule makes.A global rule that is evaluated when none of the more specific rules determine aResultUsePolicy
for a method.ResultUseRule.MethodRule<C,S, M extends S> A rule that evaluates methods and constructors to determine aResultUsePolicy
for them.Scope to which a rule may apply.A rule that evaluates symbols of any kind to determine aResultUsePolicy
to associate with them.Factories for common kinds ofResultUseRule
s.Checker that warns when capturing the result of an ignorable API into anunused
variable.Checker that recommends using ErrorProne's version of@CheckReturnValue
over the version in JSR305 (which is defunct).