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
I am working on enabling JSpecify mode in Spring Framework, and so far the most frequent source of issues has been the handling of ? extends @Nullable T versus @Nullable of T.
error: [NullAway] Cannot assign from type Supplier<@Nullable String> to type Supplier<? extends @Nullable String> due to mismatched nullability of type parameters
It looks like a value use case to me, if not, please let me know.I have also the same issue with nullable method reference.
The text was updated successfully, but these errors were encountered:
sdeleuze
changed the title
Cannot assign from type Supplier<@Nullable String> to type Supplier<? extends @Nullable String>
Cannot use generic type @Nullable T with ? extends @Nullable TJan 13, 2025
error: [NullAway] Cannot pass parameter of type @Nullable Map<String, @Nullable Object>, as formal parameter has type @Nullable Map<?, ? extends @Nullable Object>, which has mismatched type parameter nullability
sdeleuze
changed the title
Cannot use generic type @Nullable T with ? extends @Nullable T
Type parameter nullability mismatch when using @Nullable T with ? extends @Nullable TJan 13, 2025
I am working on enabling JSpecify mode in Spring Framework, and so far the most frequent source of issues has been the handling of
? extends @Nullable T
versus@Nullable of T
.See for example this simple code sample:
Which generates the following error:
It looks like a value use case to me, if not, please let me know.I have also the same issue with nullable method reference.
The text was updated successfully, but these errors were encountered: