From e0db1d0527133fa5b18c688ad76605d42fec9f3f Mon Sep 17 00:00:00 2001 From: wmxl <294036748@qq.com> Date: Thu, 17 Oct 2024 16:14:39 +0800 Subject: [PATCH] Fix formatting issue add name to authors --- .../core/cluster/models/partitions/RedisClusterNode.java | 1 + .../cluster/models/partitions/RedisClusterNodeUnitTests.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/lettuce/core/cluster/models/partitions/RedisClusterNode.java b/src/main/java/io/lettuce/core/cluster/models/partitions/RedisClusterNode.java index 60589db2a..c17006f73 100644 --- a/src/main/java/io/lettuce/core/cluster/models/partitions/RedisClusterNode.java +++ b/src/main/java/io/lettuce/core/cluster/models/partitions/RedisClusterNode.java @@ -45,6 +45,7 @@ * * @author Mark Paluch * @author Alessandro Simi + * @author Tony Zhang * @since 3.0 */ @SuppressWarnings("serial") diff --git a/src/test/java/io/lettuce/core/cluster/models/partitions/RedisClusterNodeUnitTests.java b/src/test/java/io/lettuce/core/cluster/models/partitions/RedisClusterNodeUnitTests.java index b7123a133..bace1dc5f 100644 --- a/src/test/java/io/lettuce/core/cluster/models/partitions/RedisClusterNodeUnitTests.java +++ b/src/test/java/io/lettuce/core/cluster/models/partitions/RedisClusterNodeUnitTests.java @@ -153,7 +153,7 @@ void shouldReturnTrueWhenSlotsAreNull() { @Test void shouldReturnTrueWhenSlotsAreEmpty() { - BitSet emptySlots = new BitSet(); // Empty BitSet + BitSet emptySlots = new BitSet(); // Empty BitSet RedisClusterNode node = new RedisClusterNode(RedisURI.create("localhost", 6379), "1", true, null, 0, 0, 0, emptySlots, Collections.emptySet()); @@ -164,7 +164,7 @@ void shouldReturnTrueWhenSlotsAreEmpty() { void shouldReturnFalseWhenSlotsAreAssigned() { BitSet slots = new BitSet(); - slots.set(1); // Assign a slot + slots.set(1); // Assign a slot RedisClusterNode node = new RedisClusterNode(RedisURI.create("localhost", 6379), "1", true, null, 0, 0, 0, slots, Collections.emptySet());