using super instead of this to keep the code style

This commit is contained in:
Nykolas Lima
2014-10-08 17:37:29 -03:00
parent 833065b670
commit f7789213df
3 changed files with 3 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ public class BinaryClient extends Connection {
}
public BinaryClient() {
this(Protocol.DEFAULT_HOST, Protocol.DEFAULT_PORT);
super(Protocol.DEFAULT_HOST, Protocol.DEFAULT_PORT);
}
public BinaryClient(final String host) {

View File

@@ -13,7 +13,7 @@ import redis.clients.util.SafeEncoder;
public class Client extends BinaryClient implements Commands {
public Client() {
this(Protocol.DEFAULT_HOST, Protocol.DEFAULT_PORT);
super(Protocol.DEFAULT_HOST, Protocol.DEFAULT_PORT);
}
public Client(final String host) {

View File

@@ -22,9 +22,7 @@ public class Jedis extends BinaryJedis implements JedisCommands,
protected Pool<Jedis> dataSource = null;
public Jedis() {
super(Protocol.DEFAULT_HOST, Protocol.DEFAULT_PORT);
}
public Jedis() {}
public Jedis(final String host) {
super(host);