Skip to content

Commit d428a84

Browse files
committed
Fix missing generics warning on GenericObjectPoolConfig
1 parent e4c608a commit d428a84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/net/greghaines/jesque/utils/PoolUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public static <V> V doWorkInPoolNicely(final Pool<Jedis> pool, final PoolWork<Je
8282
* maxIdle=10, minIdle=1, testOnBorrow=true,
8383
* blockWhenExhausted=false
8484
*/
85-
public static GenericObjectPoolConfig getDefaultPoolConfig() {
86-
final GenericObjectPoolConfig cfg = new GenericObjectPoolConfig();
85+
public static GenericObjectPoolConfig<Jedis> getDefaultPoolConfig() {
86+
final GenericObjectPoolConfig<Jedis> cfg = new GenericObjectPoolConfig<>();
8787
cfg.setMaxTotal(-1); // Infinite
8888
cfg.setMaxIdle(10);
8989
cfg.setMinIdle(1);
@@ -111,7 +111,7 @@ public static Pool<Jedis> createJedisPool(final Config jesqueConfig) {
111111
* @param poolConfig the config used to create the pool
112112
* @return a configured Pool of Jedis connections
113113
*/
114-
public static Pool<Jedis> createJedisPool(final Config jesqueConfig, final GenericObjectPoolConfig poolConfig) {
114+
public static Pool<Jedis> createJedisPool(final Config jesqueConfig, final GenericObjectPoolConfig<Jedis> poolConfig) {
115115
if (jesqueConfig == null) {
116116
throw new IllegalArgumentException("jesqueConfig must not be null");
117117
}

0 commit comments

Comments
 (0)