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

Fix overridden methods nullability [SPR-15869] #20424

Closed
spring-projects-issues opened this issue Aug 16, 2017 · 0 comments
Closed

Fix overridden methods nullability [SPR-15869] #20424

spring-projects-issues opened this issue Aug 16, 2017 · 0 comments
Assignees
Labels
type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Aug 16, 2017

Sébastien Deleuze opened SPR-15869 and commented

As specified in this custom nullability proposal and as discussed with Jetbrains team, methods overridding parent one with @Nullable return values annotation require the @Nullable annotation to be present at the same level than @Override to get nullable qualifier taken in account in the overridden method.

This is currently not done in most places, so this need to be fixed to get null-safety handled correctly by IDEA and Kotlin.


Issue Links:

  • #20099 Introduce null-safety of Spring Framework API
  • #20311 Revisit nullability annotations towards GA

Referenced from: commits 73cf07e, 47a7475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug
Projects
None yet
Development

No branches or pull requests

2 participants