Migrate to JSpecify annotations #399
Labels
contributor: needs feedback
Feedback is wanted before these changes are merged
size: XL
status: future
This might be done in the future
type: enhancement
This is a feature request or a pull request that adds a feature
type: refactor
This refactors existing code
Confirmation
Problem
JSpecify is a set of standard annotations for Java static analysis and is being developed by Google, JetBrains, Meta, SonarQube, and more.
Suggested solution
We should eventually migrate to using JSpecify annotations instead of the JetBrains
@NotNull
and@Nullable
annotations, as JSpecify may eventually become more widely supported by editors and static analysis tools.User guide (draft): https://jspecify.dev/docs/user-guide/
Specification (draft): https://jspecify.dev/docs/spec/
The overall change will be adding
@NullMarked
to all classes, removing all JetBrains@NotNull
annotations and replacing all JetBrains@Nullable
annotations with the JSpecify@Nullable
annotaion.Additional information
No response
The text was updated successfully, but these errors were encountered: