Style refactor

This commit is contained in:
ivowiblo
2012-04-19 03:04:06 -04:00
parent e008f403b1
commit c765bc3910
3 changed files with 3 additions and 7 deletions

View File

@@ -154,5 +154,4 @@ public interface BinaryJedisCommands {
Long zremrangeByScore(byte[] key, double start, double end); Long zremrangeByScore(byte[] key, double start, double end);
Long linsert(byte[] key, LIST_POSITION where, byte[] pivot, byte[] value); Long linsert(byte[] key, LIST_POSITION where, byte[] pivot, byte[] value);
} }

View File

@@ -4,8 +4,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import redis.clients.util.Slowlog;
/** /**
* Common interface for sharded and non-sharded Jedis * Common interface for sharded and non-sharded Jedis
*/ */
@@ -162,5 +160,4 @@ public interface JedisCommands {
Long linsert(String key, Client.LIST_POSITION where, String pivot, Long linsert(String key, Client.LIST_POSITION where, String pivot,
String value); String value);
} }

View File

@@ -12,9 +12,9 @@ public class Slowlog {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static List<Slowlog> from(List<Object> nestedMultiBulkReply){ public static List<Slowlog> from(List<Object> nestedMultiBulkReply){
List<Slowlog> logs = new ArrayList<Slowlog>(nestedMultiBulkReply.size()); List<Slowlog> logs = new ArrayList<Slowlog>(nestedMultiBulkReply.size());
for(Object obj:nestedMultiBulkReply){ for(Object obj : nestedMultiBulkReply){
List<Object> list = (List<Object>)obj; List<Object> properties = (List<Object>)obj;
logs.add(new Slowlog(list)); logs.add(new Slowlog(properties));
} }
return logs; return logs;