Skip to content

Commit 89d8ca6

Browse files
committed
Use "this" intead of "super"
1 parent 5641d90 commit 89d8ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/redis/clients/jedis/JedisPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,11 @@ public JedisPool(final GenericObjectPoolConfig poolConfig, final JedisSocketFact
289289
}
290290

291291
public JedisPool(final GenericObjectPoolConfig poolConfig, final JedisSocketFactory jedisSocketFactory) {
292-
super(poolConfig, new JedisFactory(jedisSocketFactory, null, null, Protocol.DEFAULT_DATABASE, null));
292+
this(poolConfig, jedisSocketFactory, null, null, Protocol.DEFAULT_DATABASE, null);
293293
}
294294

295295
public JedisPool(final JedisSocketFactory jedisSocketFactory) {
296-
super(new GenericObjectPoolConfig(), new JedisFactory(jedisSocketFactory, null, null, Protocol.DEFAULT_DATABASE, null));
296+
this(new GenericObjectPoolConfig(), jedisSocketFactory, null, null, Protocol.DEFAULT_DATABASE, null);
297297
}
298298

299299
@Override

0 commit comments

Comments
 (0)