From f9c6b887b13e541b1cd7f9040fd620c45f1a2759 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Tue, 28 Apr 2015 01:37:50 -0300 Subject: [PATCH] Replace Command with ProtocolCommand for missing methods --- src/main/java/redis/clients/jedis/Connection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/redis/clients/jedis/Connection.java b/src/main/java/redis/clients/jedis/Connection.java index f38fe2454b..3ccf905cbc 100644 --- a/src/main/java/redis/clients/jedis/Connection.java +++ b/src/main/java/redis/clients/jedis/Connection.java @@ -81,7 +81,7 @@ public void rollbackTimeout() { } } - protected Connection sendCommand(final Command cmd, final String... args) { + protected Connection sendCommand(final ProtocolCommand cmd, final String... args) { final byte[][] bargs = new byte[args.length][]; for (int i = 0; i < args.length; i++) { bargs[i] = SafeEncoder.encode(args[i]); @@ -102,7 +102,7 @@ protected Connection sendCommand(final ProtocolCommand cmd, final byte[]... args } } - protected Connection sendCommand(final Command cmd) { + protected Connection sendCommand(final ProtocolCommand cmd) { try { connect(); Protocol.sendCommand(outputStream, cmd, new byte[0][]);