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
The method ZSetOperations.score() is annotated with @NonNull, but it can actually return null if the member does not exist in the Redis ZSet. This causes IDEs (like IntelliJ IDEA) to incorrectly warn "score is never null" when checking if (score != null).
Compiler alarm: Method 'core' inheritance annotation from package org.springframework.data.redis.comre, thus 'non-null'
IDE static analysis tools (IntelliJ) treat the return value as non-null, leading to false warnings.
Spring Data Redis: 3.4.4
Java: 17
IDE: IntelliJ IDEA 2023.x
The text was updated successfully, but these errors were encountered:
The method
ZSetOperations.score()
is annotated with@NonNull
, but it can actually returnnull
if the member does not exist in the Redis ZSet. This causes IDEs (like IntelliJ IDEA) to incorrectly warn "score is never null" when checkingif (score != null)
.Compiler alarm: Method 'core' inheritance annotation from package org.springframework.data.redis.comre, thus 'non-null'
IDE static analysis tools (IntelliJ) treat the return value as non-null, leading to false warnings.
The text was updated successfully, but these errors were encountered: