Skip to content

Commit e033524

Browse files
author
Raju Kumar Gupta
committed
[POOL-419] Fix for POOL-419. Before adding the returned object to the pool, we must check whether it is already deallocated.
1 parent 06a0df6 commit e033524

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java

-1
Original file line numberDiff line numberDiff line change
@@ -3163,7 +3163,6 @@ public Object create() {
31633163

31643164
@Override
31653165
public PooledObject<Object> wrap(final Object obj) {
3166-
// fake
31673166
return new DefaultPooledObject<>(obj);
31683167
}
31693168
};

0 commit comments

Comments
 (0)