Skip to content

Commit 3547198

Browse files
authored
reduce one possible import
1 parent 2df9bcb commit 3547198

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/redis/clients/jedis/JedisClusterConnectionHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.io.Closeable;
44
import java.util.ArrayList;
55
import java.util.Collections;
6-
import java.util.List;
76
import java.util.Map;
87
import java.util.Set;
98
import javax.net.ssl.HostnameVerifier;
@@ -120,7 +119,7 @@ public Map<String, JedisPool> getNodes() {
120119
}
121120

122121
private void initializeSlotsCache(Set<HostAndPort> startNodes, JedisClientConfig clientConfig) {
123-
List<HostAndPort> startNodeList = new ArrayList<>(startNodes);
122+
ArrayList<HostAndPort> startNodeList = new ArrayList<>(startNodes);
124123
Collections.shuffle(startNodeList);
125124

126125
for (HostAndPort hostAndPort : startNodeList) {

0 commit comments

Comments
 (0)