File: InconsistentCapitalization.md

package info (click to toggle)
error-prone-java 2.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 23,204 kB
  • sloc: java: 222,992; xml: 1,319; sh: 25; makefile: 7
file content (10 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
It is confusing to have two or more variables under the same scope that differ
only in capitalization. Make sure that both of these follow the casing guide
([Google Java Style Guide ยง5.3][styleCamelCase]) and to be consistent if more
than one option is possible.

This checker will only find parameters that differ in capitalization with fields
that can be accessed from the parameter's scope.


[styleCamelCase]: https://google.github.io/styleguide/javaguide.html#s5.3-camel-case