You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #22682 for specific JdbcOperations Kotlin extensions case, we could make null-safety more accurate by inferring null-safety from type variable in order to leverage the null-safety declared by the user instead of hardcoding the nullable nature of the return value, which forces for example Kotlin developers to use !! systematically and is not consistent with Java original signature.
PropertyResolver, JdbcOperations and RestOperations Kotlin extensions should be modified accordingly.
Based on my tests, it seems Java type inference is not clever enough to infer null-safety from type variable level @Nullable annotation so we will have to wait #20496 to apply that as well to Java methods.