FieldMissingNullable
Fields that can be null should be annotated @Nullable

Category
Severity
SUGGESTION
Maturity

The problem

Fields that may be null should be annotated with @Nullable. For example, do this:

```java {.good} public class Foo { @Nullable private String message = “hello”; public void reset() { message = null; } }


Not this:

```java {.bad}
public class Foo {
  private String message = "hello";
  public void reset() {
    message = null;
  }
}

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("FieldMissingNullable") to the enclosing element.