Skip to content

Commit b958756

Browse files
committed
Annotate indexOf(..) and lastIndexOf(..) ListOperations with @nullable.
Closes spring-projects#2488
1 parent e4c4c7e commit b958756

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/springframework/data/redis/core/ListOperations.java

+2
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ default V move(K sourceKey, Direction from, K destinationKey, Direction to, Dura
388388
* @since 2.4
389389
* @see <a href="https://redis.io/commands/lpos">Redis Documentation: LPOS</a>
390390
*/
391+
@Nullable
391392
Long indexOf(K key, V value);
392393

393394
/**
@@ -400,6 +401,7 @@ default V move(K sourceKey, Direction from, K destinationKey, Direction to, Dura
400401
* @since 2.4
401402
* @see <a href="https://redis.io/commands/lpos">Redis Documentation: LPOS</a>
402403
*/
404+
@Nullable
403405
Long lastIndexOf(K key, V value);
404406

405407
/**

0 commit comments

Comments
 (0)