Skip to content
Permalink
Browse files
Use final, remove trailing whitespace.
  • Loading branch information
Gary Gregory committed Aug 14, 2021
1 parent cea8e71 commit a97ca986d6b94e68e3eff9a4bcf1cf0588f58bc9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
@@ -50,7 +50,7 @@ class PooledTestObject implements TrackedUse {
private static final Instant INSTANT_1 = Instant.ofEpochMilli(1);
private boolean active;
private boolean destroyed;
private int hash;
private final int hash;
private boolean abandoned;
private boolean detached; // destroy-abandoned "detaches"

@@ -200,7 +200,7 @@ public void destroyObject(final K key, final PooledObject<String> obj) throws Ex
private void doWait(final long latency) {
Waiter.sleepQuietly(latency);
}

@Override
public PooledObject<String> makeObject(final K key) throws Exception {
if (exceptionOnCreate) {
@@ -1123,7 +1123,7 @@ public void testBorrowObjectFairness() throws Exception {
/**
* On first borrow, first object fails validation, second object is OK.
* Subsequent borrows are OK. This was POOL-152.
* @throws Exception
* @throws Exception
*/
@Test
@Timeout(value = 60000, unit = TimeUnit.MILLISECONDS)
@@ -122,7 +122,7 @@ public void testToChronoUnit() {
public void testToDuration() {
assertEquals(Duration.ZERO, PoolImplUtils.toDuration(0, TimeUnit.MILLISECONDS));
assertEquals(Duration.ofMillis(1), PoolImplUtils.toDuration(1, TimeUnit.MILLISECONDS));
for (TimeUnit tu : TimeUnit.values()) {
for (final TimeUnit tu : TimeUnit.values()) {
// All TimeUnit should be handled.
assertEquals(Duration.ZERO, PoolImplUtils.toDuration(0, tu));
}

0 comments on commit a97ca98

Please sign in to comment.