Mark inner classes static that don't reference parent class.
This commit is contained in:
@@ -10,7 +10,7 @@ public abstract class ShardedJedisPipeline {
|
|||||||
private BinaryShardedJedis jedis;
|
private BinaryShardedJedis jedis;
|
||||||
private List<FutureResult> results = new ArrayList<FutureResult>();
|
private List<FutureResult> results = new ArrayList<FutureResult>();
|
||||||
|
|
||||||
private class FutureResult {
|
private static class FutureResult {
|
||||||
private Client client;
|
private Client client;
|
||||||
|
|
||||||
public FutureResult(Client client) {
|
public FutureResult(Client client) {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public class JedisByteHashMap implements Map<byte[], byte[]>, Cloneable,
|
|||||||
return internalMap.values();
|
return internalMap.values();
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class ByteArrayWrapper {
|
private static final class ByteArrayWrapper {
|
||||||
private final byte[] data;
|
private final byte[] data;
|
||||||
|
|
||||||
public ByteArrayWrapper(byte[] data) {
|
public ByteArrayWrapper(byte[] data) {
|
||||||
@@ -110,7 +110,7 @@ public class JedisByteHashMap implements Map<byte[], byte[]>, Cloneable,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class JedisByteEntry implements Entry<byte[], byte[]> {
|
private static final class JedisByteEntry implements Entry<byte[], byte[]> {
|
||||||
private byte[] value;
|
private byte[] value;
|
||||||
private byte[] key;
|
private byte[] key;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user