-
Notifications
You must be signed in to change notification settings - Fork 679
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
Introduce Nullability
API
#3115
base: main
Are you sure you want to change the base?
Conversation
Paging @sdeleuze |
Should this rather live in Spring Framework? |
If we added more nullabilty runtime API, it would indeed be worth to considering it for inclusion in Spring Framework, but in terms of timeframe it would be more towards next year. As shared with @mp911de, nullabilty is a complex and nuanced topic with a lot of implications, and there are some ongoing discussions with JSpecify working group on potential evolution that could impact how Spring supports it, as well as some future implication on JDK side. With @jhoeller, in terms of timeline we suggest to wait for related portfolio-wide discussions to evaluate what could go on Framework side before merging this PR. |
654c59e
to
ec06257
Compare
We now provide a dedicated API to introspect nullability rules. The new API supports Spring, JSR-305, and JSpecify.
The previous
NullableUtils
API is now deprecated as its implementation would not support a pluggable model ofNullabilityProvider
.Related to #3100