Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 9, 2024
1 parent 29f7040 commit de8e9bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class TestDefaultPooledObject {
@Test
public void testGetIdleTimeMillis() throws Exception {
final DefaultPooledObject<Object> dpo = new DefaultPooledObject<>(new Object());
final AtomicBoolean negativeIdleTimeReturned = new AtomicBoolean(false);
final AtomicBoolean negativeIdleTimeReturned = new AtomicBoolean();
final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 3);
final Runnable allocateAndDeallocateTask = () -> {
for (int i1 = 0; i1 < 10000; i1++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ public void testLivenessOnTransientFactoryFailure() throws Exception {
pool.setTestOnReturn(true);
pool.setMaxTotal(1);
final Waiter w = pool.borrowObject();
final AtomicBoolean failed = new AtomicBoolean(false);
final AtomicBoolean failed = new AtomicBoolean();
final Thread t = new Thread(() -> {
try {
pool.borrowObject();
Expand Down

0 comments on commit de8e9bc

Please sign in to comment.