Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @NonNullByDefault to Nullness Checker #5450

Closed
Monniasza opened this issue Dec 17, 2022 · 2 comments
Closed

Add @NonNullByDefault to Nullness Checker #5450

Monniasza opened this issue Dec 17, 2022 · 2 comments

Comments

@Monniasza
Copy link

I'd like to have a @NonNullByDefault annotation, to replace an annotation from FindBugs.
I'm looking to replace FindBugs because it is dormant and their annotations don't work in GitHub Actions.

@mernst
Copy link
Member

mernst commented Dec 17, 2022

In the Nullness Checker, @NonNull is the default. Therefore, there is no need for a @NonNullByDefault annotation, which would have no effect. You can just remove @NonNullByDefault annotations when switching to a more modern set of annotations such as those of the Checker Framework.

@mernst
Copy link
Member

mernst commented Dec 20, 2022

Does this resolve your problem?

@mernst mernst closed this as completed Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants