google / google/error-prone

Document `AddNullMarkedToClass` and `AddNullMarkedToPackageInfo`

Open
#5,433 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

In 2.46.0 I get a lot of new warnings due to `AddNullMarkedToClass`. The link resolves to https://errorprone.info/bugpattern/AddNullMarkedToClass, which is empty. It would be helpful to get some instructions for this rule.

I marked all my classes using a package directive, so I have no idea what I am making wrong:

```
@DefaultAnnotation(NonNull.class)
package edu.hm.hafner.util;
```

See https://github.com/uhafner/codingstyle/runs/59898174755 and https://github.com/uhafner/codingstyle/pull/1714.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.