Mark inner classes static that don't reference parent class.

This commit is contained in:
Kevin Sawicki
2011-06-29 09:34:57 -07:00
parent 6c3ec9fc14
commit 3abaf71e0a
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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;