Uses of Annotation Type
com.google.errorprone.annotations.CheckReturnValue
Package
Description
Checks added to the java compiler which detect common bug patterns.
A predicate DSL for matching javac AST nodes.
-
Uses of CheckReturnValue in com.google.errorprone
Modifier and TypeClassDescriptionclass
Compare a file transformed as suggested byBugChecker
to an expected source.class
Helps test Error Prone bug checkers and compilations.class
Immutable container of "suppression signals" - annotations or other information gathered from source - that can be used to determine if a specificSuppressible
object should be considered suppressed.Modifier and TypeMethodDescriptionErrorProneFlags.plus
(ErrorProneFlags other) Returns a new ErrorProneFlags object with the values of two ErrorProneFlags objects added together. -
Uses of CheckReturnValue in com.google.errorprone.bugpatterns
Modifier and TypeClassDescriptionclass
Finds calls to regex-accepting methods with literal strings.Modifier and TypeMethodDescriptionBugChecker.buildDescription
(com.sun.source.tree.Tree node) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.BugChecker.buildDescription
(com.sun.tools.javac.tree.JCTree tree) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.BugChecker.buildDescription
(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition position) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.BugChecker.describeMatch
(com.sun.source.tree.Tree node) Helper to create a Description for the common case where there is no fix.BugChecker.describeMatch
(com.sun.source.tree.Tree node, Fix fix) Helper to create a Description for the common case where there is a fix.BugChecker.describeMatch
(com.sun.tools.javac.tree.JCTree node) Helper to create a Description for the common case where there is no fix.BugChecker.describeMatch
(com.sun.tools.javac.tree.JCTree node, Fix fix) Helper to create a Description for the common case where there is a fix.BugChecker.describeMatch
(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition position) Helper to create a Description for the common case where there is no fix.BugChecker.describeMatch
(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition position, Fix fix) Helper to create a Description for the common case where there is a fix. -
Uses of CheckReturnValue in com.google.errorprone.bugpatterns.threadsafety
Modifier and TypeMethodDescriptiondefault Description
ImmutableAnalysis.ViolationReporter.report
(com.sun.source.tree.Tree tree, ThreadSafety.Violation info, Optional<SuggestedFix> suggestedFix) -
Uses of CheckReturnValue in com.google.errorprone.matchers
Modifier and TypeClassDescriptionfinal class
Matches expressions that invoke or reference a non-void method or constructor and which do not use their return value and are not in a context where non-use of the return value is allowed.Modifier and TypeMethodDescriptionDescription.applySeverityOverride
(BugPattern.SeverityLevel severity) Internal-only. -
Uses of CheckReturnValue in com.google.errorprone.scanner
Modifier and TypeClassDescriptionclass
TODO(eaftan): I'm worried about this performance of this code, specifically the part that handles SuppressWarnings.Modifier and TypeMethodDescriptionScannerSupplier.applyOverrides
(ErrorProneOptions errorProneOptions) Applies options to thisScannerSupplier
.ScannerSupplier.filter
(com.google.common.base.Predicate<? super BugCheckerInfo> predicate) Filters thisScannerSupplier
based on the provided predicate.ScannerSupplier.plus
(ScannerSupplier other)