Skip to content

Commit 090a479

Browse files
committed
- Add missing @since tags
Signed-off-by: Chris Bono <chris.bono@broadcom.com>
1 parent f73833c commit 090a479

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,7 @@ default Flux<Long> hpTtl(ByteBuffer key, List<ByteBuffer> fields) {
12611261
* {@literal HGETDEL} {@link Command}.
12621262
*
12631263
* @author Viktoriya Kutsarova
1264+
* @since 4.0
12641265
* @see <a href="https://redis.io/commands/hgetdel">Redis Documentation: HGETDEL</a>
12651266
*/
12661267
class HGetDelCommand extends HashFieldsCommand {
@@ -1318,6 +1319,7 @@ public HGetDelCommand from(ByteBuffer key) {
13181319
* @param key must not be {@literal null}.
13191320
* @param fields must not be {@literal null}.
13201321
* @return never {@literal null}.
1322+
* @since 4.0
13211323
* @see <a href="https://redis.io/commands/hgetdel">Redis Documentation: HGETDEL</a>
13221324
*/
13231325
default Mono<List<ByteBuffer>> hGetDel(ByteBuffer key, Collection<ByteBuffer> fields) {
@@ -1335,6 +1337,7 @@ default Mono<List<ByteBuffer>> hGetDel(ByteBuffer key, Collection<ByteBuffer> fi
13351337
*
13361338
* @param commands must not be {@literal null}.
13371339
* @return never {@literal null}.
1340+
* @since 4.0
13381341
* @see <a href="https://redis.io/commands/hgetdel">Redis Documentation: HGETDEL</a>
13391342
*/
13401343
Flux<MultiValueResponse<HGetDelCommand, ByteBuffer>> hGetDel(Publisher<HGetDelCommand> commands);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ Boolean hSetEx(byte @NonNull [] key, @NonNull Map<byte[], byte[]> hashes, HashFi
587587
* {@code HSETEX} command arguments for {@code FNX}, {@code FXX}.
588588
*
589589
* @author Viktoriya Kutsarova
590+
* @since 4.0
590591
*/
591592
enum HashFieldSetOption {
592593

src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ static class TypeHints {
12461246
COMMAND_OUTPUT_TYPE_MAPPING.put(HGETDEL, ValueListOutput.class);
12471247
COMMAND_OUTPUT_TYPE_MAPPING.put(HGETEX, ValueListOutput.class);
12481248

1249-
// BOOLEAN
1249+
// BOOLEAN
12501250
COMMAND_OUTPUT_TYPE_MAPPING.put(EXISTS, BooleanOutput.class);
12511251
COMMAND_OUTPUT_TYPE_MAPPING.put(EXPIRE, BooleanOutput.class);
12521252
COMMAND_OUTPUT_TYPE_MAPPING.put(EXPIREAT, BooleanOutput.class);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ default BoundHashFieldExpirationOperations<HK> hashExpiration(@NonNull Collectio
254254
*
255255
* @param hashFields must not be {@literal null}.
256256
* @return {@literal null} when used in pipeline / transaction.
257-
* @since 3.1
257+
* @since 4.0
258258
*/
259259
List<HV> getAndDelete(@NonNull Collection<@NonNull HK> hashFields);
260260

@@ -279,6 +279,7 @@ default BoundHashFieldExpirationOperations<HK> hashExpiration(@NonNull Collectio
279279
* fields if all of them already exist, or {@link RedisHashCommands.HashFieldSetOption#UPSERT} to set the fields
280280
* unconditionally.
281281
* @param expiration is optional.
282+
* @since 4.0
282283
*/
283284
void putAndExpire(Map<? extends @NonNull HK, ? extends HV> m, RedisHashCommands.HashFieldSetOption condition, Expiration expiration);
284285
}

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ public List<HV> multiGet(@NonNull K key, @NonNull Collection<@NonNull HK> fields
186186
byte[][] rawHashKeys = new byte[fields.size()][];
187187

188188
int counter = 0;
189-
for (@NonNull
190-
HK hashKey : fields) {
189+
for (@NonNull HK hashKey : fields) {
191190
rawHashKeys[counter++] = rawHashKey(hashKey);
192191
}
193192

@@ -206,8 +205,7 @@ public List<HV> getAndDelete(@NonNull K key, @NonNull Collection<@NonNull HK> fi
206205
byte[] rawKey = rawKey(key);
207206
byte[][] rawHashKeys = new byte[fields.size()][];
208207
int counter = 0;
209-
for (@NonNull
210-
HK hashKey : fields) {
208+
for (@NonNull HK hashKey : fields) {
211209
rawHashKeys[counter++] = rawHashKey(hashKey);
212210
}
213211
List<byte[]> rawValues = execute(connection -> connection.hashCommands().hGetDel(rawKey, rawHashKeys));
@@ -226,8 +224,7 @@ public List<HV> getAndExpire(@NonNull K key, @NonNull Expiration expiration,
226224
byte[] rawKey = rawKey(key);
227225
byte[][] rawHashKeys = new byte[fields.size()][];
228226
int counter = 0;
229-
for (@NonNull
230-
HK hashKey : fields) {
227+
for (@NonNull HK hashKey : fields) {
231228
rawHashKeys[counter++] = rawHashKey(hashKey);
232229
}
233230
List<byte[]> rawValues = execute(connection -> connection.hashCommands()

0 commit comments

Comments
 (0)