fix - suppress warnings

This commit is contained in:
mindwind
2013-06-29 12:58:25 +08:00
parent 62c30dfe8b
commit 20a75417cd

View File

@@ -2891,6 +2891,7 @@ public class Jedis extends BinaryJedis implements JedisCommands, MultiKeyCommand
* *
* @return * @return
*/ */
@SuppressWarnings("rawtypes")
public List<Map<String, String>> sentinelMasters() { public List<Map<String, String>> sentinelMasters() {
client.sentinel(Protocol.SENTINEL_MASTERS); client.sentinel(Protocol.SENTINEL_MASTERS);
final List<Object> reply = client.getObjectMultiBulkReply(); final List<Object> reply = client.getObjectMultiBulkReply();
@@ -2968,6 +2969,7 @@ public class Jedis extends BinaryJedis implements JedisCommands, MultiKeyCommand
* @param masterName * @param masterName
* @return * @return
*/ */
@SuppressWarnings("rawtypes")
public List<Map<String, String>> sentinelSlaves(String masterName) { public List<Map<String, String>> sentinelSlaves(String masterName) {
client.sentinel(Protocol.SENTINEL_SLAVES, masterName); client.sentinel(Protocol.SENTINEL_SLAVES, masterName);
final List<Object> reply = client.getObjectMultiBulkReply(); final List<Object> reply = client.getObjectMultiBulkReply();
@@ -2991,6 +2993,7 @@ public class Jedis extends BinaryJedis implements JedisCommands, MultiKeyCommand
* *
* @return Long followed by the String (runid) * @return Long followed by the String (runid)
*/ */
@SuppressWarnings("unchecked")
public List<? extends Object> sentinelIsMasterDownByAddr(String host, public List<? extends Object> sentinelIsMasterDownByAddr(String host,
int port) { int port) {
client.sentinel(Protocol.SENTINEL_IS_MASTER_DOWN_BY_ADDR, host, port); client.sentinel(Protocol.SENTINEL_IS_MASTER_DOWN_BY_ADDR, host, port);
@@ -2998,4 +3001,5 @@ public class Jedis extends BinaryJedis implements JedisCommands, MultiKeyCommand
return Arrays.asList(BuilderFactory.LONG.build(reply.get(0)), return Arrays.asList(BuilderFactory.LONG.build(reply.get(0)),
BuilderFactory.STRING.build(reply.get(1))); BuilderFactory.STRING.build(reply.get(1)));
} }
} }