Skip to content

Commit 3b9de23

Browse files
mp911dechristophstrobl
authored andcommitted
DATAREDIS-1138 - Polishing.
Add missing Nullable annotations. Original Pull Request: #528
1 parent f4676ed commit 3b9de23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/springframework/data/redis/connection/RedisStreamCommands.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ default RecordId xAdd(byte[] key, Map<byte[], byte[]> content) {
9191
* @param record the {@link MapRecord record} to append.
9292
* @return the {@link RecordId id} after save. {@literal null} when used in pipeline / transaction.
9393
*/
94+
@Nullable
9495
default RecordId xAdd(MapRecord<byte[], byte[], byte[]> record) {
9596
return xAdd(record, XAddOptions.none());
9697
}
@@ -106,6 +107,7 @@ default RecordId xAdd(MapRecord<byte[], byte[], byte[]> record) {
106107
* @return the {@link RecordId id} after save. {@literal null} when used in pipeline / transaction.
107108
* @since 2.3
108109
*/
110+
@Nullable
109111
RecordId xAdd(MapRecord<byte[], byte[], byte[]> record, XAddOptions options);
110112

111113
/**
@@ -188,6 +190,7 @@ public int hashCode() {
188190
* @see <a href="https://redis.io/commands/xclaim">Redis Documentation: XCLAIM</a>
189191
* @since 2.3
190192
*/
193+
@Nullable
191194
List<RecordId> xClaimJustId(byte[] key, String group, String newOwner, XClaimOptions options);
192195

193196
/**
@@ -202,6 +205,7 @@ public int hashCode() {
202205
* @see <a href="https://redis.io/commands/xclaim">Redis Documentation: XCLAIM</a>
203206
* @since 2.3
204207
*/
208+
@Nullable
205209
default List<ByteRecord> xClaim(byte[] key, String group, String newOwner, Duration minIdleTime,
206210
RecordId... recordIds) {
207211
return xClaim(key, group, newOwner, XClaimOptions.minIdle(minIdleTime).ids(recordIds));
@@ -218,6 +222,7 @@ default List<ByteRecord> xClaim(byte[] key, String group, String newOwner, Durat
218222
* @see <a href="https://redis.io/commands/xclaim">Redis Documentation: XCLAIM</a>
219223
* @since 2.3
220224
*/
225+
@Nullable
221226
List<ByteRecord> xClaim(byte[] key, String group, String newOwner, XClaimOptions options);
222227

223228
/**
@@ -445,6 +450,7 @@ default Long xDel(byte[] key, String... recordIds) {
445450
* @return number of removed entries. {@literal null} when used in pipeline / transaction.
446451
* @see <a href="https://redis.io/commands/xdel">Redis Documentation: XDEL</a>
447452
*/
453+
@Nullable
448454
Long xDel(byte[] key, RecordId... recordIds);
449455

450456
/**

0 commit comments

Comments
 (0)