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());