Skip to content

Commit d3c075a

Browse files
committed
Reuse internal refactoring
1 parent 0aa302b commit d3c075a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/commons/pool3/impl/GenericObjectPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ private PooledObject<T> create(final Duration maxWaitDurationRequest) throws E {
591591
}
592592

593593
createdCount.incrementAndGet();
594-
allObjects.put(new IdentityWrapper<>(p.getObject()), p);
594+
allObjects.put(IdentityWrapper.unwrap(p), p);
595595
return p;
596596
}
597597

0 commit comments

Comments
 (0)