Sign in
chromium
/
external
/
github.com
/
google
/
error-prone
/
refs/heads/master
/
.
/
docs
/
bugpattern
/
NonFinalStaticField.md
blob: 588842c4eeee30245faa51719bcc2f479141fd3e [
file
] [
view
] [
edit
]
`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";
```