Skip to content

Commit

Permalink
Don't generate a "Suppression" section that recommends `@SuppressWarn…
Browse files Browse the repository at this point in the history
…ings("CheckReturnValue")`.

We prefer `var unused`.

PiperOrigin-RevId: 500167924
  • Loading branch information
cpovirk authored and Error Prone Team committed Jan 6, 2023
1 parent c06c7b8 commit 360ed99
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
@BugPattern(
altNames = {"ResultOfMethodCallIgnored", "ReturnValueIgnored"},
summary = "The result of this call must be used",
documentSuppression = false, // We prefer `var unused`, as covered in CheckReturnValue.md.
severity = ERROR)
public class CheckReturnValue extends AbstractReturnValueIgnored
implements MethodTreeMatcher, ClassTreeMatcher {
Expand Down

0 comments on commit 360ed99

Please sign in to comment.