Skip to content

Commit

Permalink
Improve clarity to explain what "private parameters" means
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 476960219
  • Loading branch information
amalloy authored and Error Prone Team committed Sep 26, 2022
1 parent 04ecb48 commit 1bbda1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/bugpattern/UnusedVariable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
The presence of an unused variable may indicate a bug. This check highlights
_private_ fields and parameters which are unused and can be safely removed
without considering the impact on other source files.
private fields, and parameters of private methods, which are unused and can be
safely removed without considering the impact on other source files. "Private"
in this context also includes effectively-private members, like public members
of private classes.

## Suppression

Expand Down

0 comments on commit 1bbda1e

Please sign in to comment.