remove java 1.6 specific annotations
This commit is contained in:
@@ -47,7 +47,6 @@ public class JedisPool extends Pool<Jedis> {
|
|||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object makeObject() throws Exception {
|
public Object makeObject() throws Exception {
|
||||||
final Jedis jedis;
|
final Jedis jedis;
|
||||||
if (timeout > 0) {
|
if (timeout > 0) {
|
||||||
@@ -63,7 +62,6 @@ public class JedisPool extends Pool<Jedis> {
|
|||||||
return jedis;
|
return jedis;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void destroyObject(final Object obj) throws Exception {
|
public void destroyObject(final Object obj) throws Exception {
|
||||||
if (obj instanceof Jedis) {
|
if (obj instanceof Jedis) {
|
||||||
final Jedis jedis = (Jedis) obj;
|
final Jedis jedis = (Jedis) obj;
|
||||||
@@ -78,7 +76,6 @@ public class JedisPool extends Pool<Jedis> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean validateObject(final Object obj) {
|
public boolean validateObject(final Object obj) {
|
||||||
if (obj instanceof Jedis) {
|
if (obj instanceof Jedis) {
|
||||||
final Jedis jedis = (Jedis) obj;
|
final Jedis jedis = (Jedis) obj;
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ public class ShardedJedisPool extends Pool<ShardedJedis> {
|
|||||||
this.keyTagPattern = keyTagPattern;
|
this.keyTagPattern = keyTagPattern;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object makeObject() throws Exception {
|
public Object makeObject() throws Exception {
|
||||||
ShardedJedis jedis = new ShardedJedis(shards, algo, keyTagPattern);
|
ShardedJedis jedis = new ShardedJedis(shards, algo, keyTagPattern);
|
||||||
boolean done = false;
|
boolean done = false;
|
||||||
@@ -67,7 +66,6 @@ public class ShardedJedisPool extends Pool<ShardedJedis> {
|
|||||||
return jedis;
|
return jedis;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void destroyObject(final Object obj) throws Exception {
|
public void destroyObject(final Object obj) throws Exception {
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
try {
|
try {
|
||||||
@@ -78,7 +76,6 @@ public class ShardedJedisPool extends Pool<ShardedJedis> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean validateObject(final Object obj) {
|
public boolean validateObject(final Object obj) {
|
||||||
try {
|
try {
|
||||||
ShardedJedis jedis = (ShardedJedis) obj;
|
ShardedJedis jedis = (ShardedJedis) obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user