From a54b67d3770e2e0c1de387965ca8880e81163800 Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Thu, 15 Feb 2024 12:12:54 -0800 Subject: [PATCH] Fix spotless --- .../src/main/java/glide/api/commands/SetCommands.java | 10 ++++------ .../main/java/glide/api/models/BaseTransaction.java | 6 ++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/java/client/src/main/java/glide/api/commands/SetCommands.java b/java/client/src/main/java/glide/api/commands/SetCommands.java index 9f936969e9..f2098c9b08 100644 --- a/java/client/src/main/java/glide/api/commands/SetCommands.java +++ b/java/client/src/main/java/glide/api/commands/SetCommands.java @@ -18,8 +18,8 @@ public interface SetCommands { * @param key The key where members will be added to its set. * @param members A list of members to add to the set stored at key. * @return The number of members that were added to the set, excluding members already present. - * @remarks If key does not exist, a new set is created before adding members. - * + * @remarks If key does not exist, a new set is created before adding members + * . * @example *

* int result = client.sadd("my_set", new String[]{"member1", "member2"}).get(); @@ -36,8 +36,8 @@ public interface SetCommands { * @param key The key from which members will be removed. * @param members A list of members to remove from the set stored at key. * @return The number of members that were removed from the set, excluding non-existing members. - * @remarks If key does not exist, it is treated as an empty set and this command returns 0. - * + * @remarks If key does not exist, it is treated as an empty set and this command + * returns 0. * @example *

* int result = client.srem("my_set", new String[]{"member1", "member2"}).get(); @@ -53,7 +53,6 @@ public interface SetCommands { * @param key The key from which to retrieve the set members. * @return A Set of all members of the set. * @remarks If key does not exist an empty set will be returned. - * * @example *

* {@literal Set} result = client.smembers("my_set").get(); @@ -68,7 +67,6 @@ public interface SetCommands { * @see redis.io for details. * @param key The key from which to retrieve the number of set members. * @return The cardinality (number of elements) of the set, or 0 if the key does not exist. - * * @example *

* int result = client.scard("my_set").get(); diff --git a/java/client/src/main/java/glide/api/models/BaseTransaction.java b/java/client/src/main/java/glide/api/models/BaseTransaction.java index 4019ccc6a7..6d40cc5ce2 100644 --- a/java/client/src/main/java/glide/api/models/BaseTransaction.java +++ b/java/client/src/main/java/glide/api/models/BaseTransaction.java @@ -178,7 +178,8 @@ public T set(String key, String value, SetOptions options) { * @param members A list of members to add to the set stored at key. * @return Command Response - The number of members that were added to the set, excluding members * already present. - * @remarks If key does not exist, a new set is created before adding members. + * @remarks If key does not exist, a new set is created before adding members + * . */ public T sadd(String key, String[] members) { ArgsArray commandArgs = buildArgs(ArrayUtils.addFirst(members, key)); @@ -196,7 +197,8 @@ public T sadd(String key, String[] members) { * @param members A list of members to remove from the set stored at key. * @return Command Response - The number of members that were removed from the set, excluding * non-existing members. - * @remarks If key does not exist, it is treated as an empty set and this command returns 0. + * @remarks If key does not exist, it is treated as an empty set and this command + * returns 0. */ public T srem(String key, String[] members) { ArgsArray commandArgs = buildArgs(ArrayUtils.addFirst(members, key));