Skip to content

Commit

Permalink
Mark inner classes static that don't reference parent class.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jun 29, 2011
1 parent 6c3ec9f commit 3abaf71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public abstract class ShardedJedisPipeline {
private BinaryShardedJedis jedis;
private List<FutureResult> results = new ArrayList<FutureResult>();

private class FutureResult {
private static class FutureResult {
private Client client;

public FutureResult(Client client) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/redis/clients/util/JedisByteHashMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Collection<byte[]> values() {
return internalMap.values();
}

private final class ByteArrayWrapper {
private static final class ByteArrayWrapper {
private final byte[] data;

public ByteArrayWrapper(byte[] data) {
Expand All @@ -110,7 +110,7 @@ public int hashCode() {
}
}

private final class JedisByteEntry implements Entry<byte[], byte[]> {
private static final class JedisByteEntry implements Entry<byte[], byte[]> {
private byte[] value;
private byte[] key;

Expand Down

0 comments on commit 3abaf71

Please sign in to comment.