Skip to content

Commit

Permalink
[POOL-238] Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Raju Kumar Gupta committed Dec 18, 2024
1 parent aee5c3b commit 68aee49
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ protected boolean isLifo() {

@Override
protected <T, E extends Exception> ObjectPool<T, E> makeEmptyPool(final int cap) {

final PooledObjectFactory<String, RuntimeException> factory = new SimpleFactory();
return (ObjectPool<T, E>)makeEmptyPool(factory);
return (ObjectPool<T, E>)makeEmptyPool(new SimpleFactory());
}

@Override
Expand Down

0 comments on commit 68aee49

Please sign in to comment.