From b958756d15db4c5ec03a43acbb1f1fc13db093ff Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 19 Jan 2023 16:58:53 -0800 Subject: [PATCH] Annotate indexOf(..) and lastIndexOf(..) ListOperations with @Nullable. Closes #2488 --- .../org/springframework/data/redis/core/ListOperations.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/springframework/data/redis/core/ListOperations.java b/src/main/java/org/springframework/data/redis/core/ListOperations.java index cd13c65b4..01c2848c9 100644 --- a/src/main/java/org/springframework/data/redis/core/ListOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ListOperations.java @@ -388,6 +388,7 @@ public interface ListOperations { * @since 2.4 * @see Redis Documentation: LPOS */ + @Nullable Long indexOf(K key, V value); /** @@ -400,6 +401,7 @@ public interface ListOperations { * @since 2.4 * @see Redis Documentation: LPOS */ + @Nullable Long lastIndexOf(K key, V value); /**