From 04e7cc6736496b87e5c0a3fe87539c25f7f30ed9 Mon Sep 17 00:00:00 2001 From: Alen Turkovic Date: Thu, 2 Dec 2021 14:14:19 +0100 Subject: [PATCH] Nullability annotations for indexOf methods --- .../org/springframework/data/redis/core/ListOperations.java | 3 +++ 1 file changed, 3 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 ae2c09473f..08e6c6ef17 100644 --- a/src/main/java/org/springframework/data/redis/core/ListOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ListOperations.java @@ -34,6 +34,7 @@ * @author Christoph Strobl * @author Mark Paluch * @author dengliming + * @author Alen Turkovic */ public interface ListOperations { @@ -388,6 +389,7 @@ default V move(K sourceKey, Direction from, K destinationKey, Direction to, Dura * @since 2.4 * @see Redis Documentation: LPOS */ + @Nullable Long indexOf(K key, V value); /** @@ -400,6 +402,7 @@ default V move(K sourceKey, Direction from, K destinationKey, Direction to, Dura * @since 2.4 * @see Redis Documentation: LPOS */ + @Nullable Long lastIndexOf(K key, V value); /**