-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed as not planned
Closed as not planned
Copy link
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
Sébastien Deleuze opened SPR-15942 and commented
As raised and discuss on KT-19592 Kotlin issue, null-safety of Spring API does not apply to generic type arguments. To do so, after KT-19592 being fixed we would have to use ElementType.TYPE_USE
but its scope is too wide to make it usable for us at @TypeQualifierDefault
level of @Nullable
and @NonNullApi
.
Another solution would be to add ElementType.TYPE_USE
at @Target
and annotate every generic type argument of Spring API, maybe that could be done via introducing a @NonNull
annotation that would also be useful for #20311.
Issue Links:
- Revisit nullability annotations towards GA [SPR-15756] #20311 Revisit nullability annotations towards GA ("depends on")
aleksey-stukalov, koscejev, rowi1de and vlaw
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement