Skip to content

Commit 1bbda1e

Browse files
amalloyError Prone Team
authored and
Error Prone Team
committed
Improve clarity to explain what "private parameters" means
PiperOrigin-RevId: 476960219
1 parent 04ecb48 commit 1bbda1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/bugpattern/UnusedVariable.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
The presence of an unused variable may indicate a bug. This check highlights
2-
_private_ fields and parameters which are unused and can be safely removed
3-
without considering the impact on other source files.
2+
private fields, and parameters of private methods, which are unused and can be
3+
safely removed without considering the impact on other source files. "Private"
4+
in this context also includes effectively-private members, like public members
5+
of private classes.
46

57
## Suppression
68

0 commit comments

Comments
 (0)