All Downloads are FREE. Search and download functionalities are using the official Maven repository.

errorprone.bugpattern.FieldMissingNullable.md Maven / Gradle / Ivy

The newest version!

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

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

Not this:

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy