-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Kotlin does not consider @Nullable
annotation from RedisOperations
#2208
base: 2.7.x
Are you sure you want to change the base?
Conversation
Nullability constraints are typically inherited for methods that specify e.g. spring-data-redis/src/main/java/org/springframework/data/redis/core/RedisOperations.java Lines 75 to 76 in b67f133
Do you have further pointers regarding that issue towards how Kotlin considers nullability annotation rules? Paging @sdeleuze |
@mp911de I tried it based on your comments. In Java, as you said, it inherits the |
Thanks a lot, that's quite interesting and likely a subject to happen in other places as well that use nullability annotations on interfaces. |
@Nullable
annotation from RedisOperations
Seems that this is a general issue: spring-projects/spring-framework#20424 |
I understand that this is a general issue that can happen in other places as well. For one more reason, for code consistency, I think it's better to add |
I wonder why Kotlin considers JSR-305 so much different than Java tooling does. Regardless, if a method is The annotation on |
There is a type issue in Kotlin due to the missing
@Nullable
annotation.