Browse Source

Merge pull request #1101 in CORE/base-third from release/10.0 to bugfix/10.0

* commit '8c5ea49b81814fe285efe63a105c4a51e3252bf3':
  无jira任务,fix: 打包失败
bugfix/10.0
superman 4 years ago
parent
commit
f309566526
  1. 4
      fine-jedis/src/main/java/com/fr/third/redis/clients/jedis/Protocol.java

4
fine-jedis/src/main/java/com/fr/third/redis/clients/jedis/Protocol.java

@ -85,10 +85,10 @@ public final class Protocol {
public static volatile int commandMappingSize = 0; public static volatile int commandMappingSize = 0;
public static synchronized void initCommandMapping(Map<String, String> mapping) { public static synchronized void initCommandMapping(final Map<String, String> mapping) {
commandMapping.clear(); commandMapping.clear();
for (Map.Entry<String, String> entry : mapping.entrySet()) { for (final Map.Entry<String, String> entry : mapping.entrySet()) {
ProtocolCommand defaultCommand = Command.fromName(entry.getKey()); ProtocolCommand defaultCommand = Command.fromName(entry.getKey());
if (defaultCommand != null) { if (defaultCommand != null) {
commandMapping.put(defaultCommand, new ProtocolCommand() { commandMapping.put(defaultCommand, new ProtocolCommand() {

Loading…
Cancel
Save