Skip to content

Commit

Permalink
Fix spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Feb 15, 2024
1 parent 032c1b0 commit a54b67d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 4 additions & 6 deletions java/client/src/main/java/glide/api/commands/SetCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public interface SetCommands {
* @param key The <code>key</code> where members will be added to its set.
* @param members A list of members to add to the set stored at <code>key</code>.
* @return The number of members that were added to the set, excluding members already present.
* @remarks If <code>key</code> does not exist, a new set is created before adding <code>members</code>.
*
* @remarks If <code>key</code> does not exist, a new set is created before adding <code>members
* </code>.
* @example
* <p><code>
* int result = client.sadd("my_set", new String[]{"member1", "member2"}).get();
Expand All @@ -36,8 +36,8 @@ public interface SetCommands {
* @param key The <code>key</code> from which members will be removed.
* @param members A list of members to remove from the set stored at <code>key</code>.
* @return The number of members that were removed from the set, excluding non-existing members.
* @remarks If <code>key</code> does not exist, it is treated as an empty set and this command returns 0.
*
* @remarks If <code>key</code> does not exist, it is treated as an empty set and this command
* returns 0.
* @example
* <p><code>
* int result = client.srem("my_set", new String[]{"member1", "member2"}).get();
Expand All @@ -53,7 +53,6 @@ public interface SetCommands {
* @param key The key from which to retrieve the set members.
* @return A <code>Set</code> of all members of the set.
* @remarks If <code>key</code> does not exist an empty set will be returned.
*
* @example
* <p><code>
* {@literal Set<String>} result = client.smembers("my_set").get();
Expand All @@ -68,7 +67,6 @@ public interface SetCommands {
* @see <a href="https://redis.io/commands/scard/">redis.io</a> 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
* <p><code>
* int result = client.scard("my_set").get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>key</code>.
* @return Command Response - The number of members that were added to the set, excluding members
* already present.
* @remarks If <code>key</code> does not exist, a new set is created before adding <code>members</code>.
* @remarks If <code>key</code> does not exist, a new set is created before adding <code>members
* </code>.
*/
public T sadd(String key, String[] members) {
ArgsArray commandArgs = buildArgs(ArrayUtils.addFirst(members, key));
Expand All @@ -196,7 +197,8 @@ public T sadd(String key, String[] members) {
* @param members A list of members to remove from the set stored at <code>key</code>.
* @return Command Response - The number of members that were removed from the set, excluding
* non-existing members.
* @remarks If <code>key</code> does not exist, it is treated as an empty set and this command returns 0.
* @remarks If <code>key</code> 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));
Expand Down

0 comments on commit a54b67d

Please sign in to comment.