Sign in
chromium
/
external
/
github.com
/
google
/
error-prone
/
b4c55352f99aee460e730bd117fe2bf1234d4d2d
/
.
/
docs
/
bugpattern
/
NonFinalStaticField.md
blob: 588842c4eeee30245faa51719bcc2f479141fd3e [
file
] [
view
]
`static`
fields should almost always be both
`final`
and
deeply immutable
.
Instead
of
:
```java
private static String FOO = "foo";
```
Prefer
:
```java
private static final String FOO = "foo";
```