-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Consider nullable annotations in explicit nulls #21629
Comments
Oh, sorry, I misunderstood. |
Not sure about the current status of Java ecosystem. I guess |
Perhaps this could be a good introductory task for @HarrisL2 |
This is a list of annotations considered by Kotlin: We should update our existing list as well. |
Hi @noti0na1 , I want to work on this issue can you please assign me this one ? |
Hi @rajRishi22 , feel free to work on this issue. |
Reassign to @HarrisL2, since he is already working on this. |
Got it. |
The
@NotNull
and@NonNullable
type annotations are currently used by explicit nulls to not nullify (or add flexible type to) a reference type from Java signatures.In addition to these annotations, I suggest we also consider the
@Nullable
annotation. It indicates a value can indeed be null. In this case, we will always nullify the type (adding| Null
), instead of adding a flexible type.A list of
@Nullable
annotations we may want to consider:The text was updated successfully, but these errors were encountered: