Skip to content

Commit 3199aa4

Browse files
committed
Remove unnecessary code
This was testing that the deprecated getter and the new getter returned the same value. With the removal of the deprecated getter this check is no longer required.
1 parent 38bc588 commit 3199aa4

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,6 @@ void testAbandonedPool() throws TestException, InterruptedException {
975975
config.setJmxEnabled(false);
976976
GenericObjectPool<String, TestException> abandoned = new GenericObjectPool<>(simpleFactory, config);
977977
abandoned.setDurationBetweenEvictionRuns(Duration.ofMillis(100)); // Starts evictor
978-
assertEquals(abandoned.getRemoveAbandonedTimeoutDuration(), abandoned.getRemoveAbandonedTimeoutDuration());
979978

980979
// This is ugly, but forces GC to hit the pool
981980
final WeakReference<GenericObjectPool<String, TestException>> ref = new WeakReference<>(abandoned);

0 commit comments

Comments
 (0)