From bbd39e4da8bff9be917b284bbb3da3930b1e8913 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 14 Dec 2023 14:00:46 -0500 Subject: [PATCH] Javadoc --- .../pool3/impl/TestGenericKeyedObjectPool.java | 16 ++++++++-------- .../pool3/impl/TestGenericObjectPool.java | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java b/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java index a30f17457b..0cbc0f2ed3 100644 --- a/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java +++ b/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java @@ -359,17 +359,17 @@ static class TestThread implements Runnable { /** GKOP to hit */ private final KeyedObjectPool pool; - /** number of borrow/return iterations */ + /** Number of borrow/return iterations */ private final int iter; - /** delay before borrow */ + /** Delay before borrow */ private final int startDelay; - /** delay before return */ + /** Delay before return */ private final int holdTime; - /** whether or not delays are random (with max = configured values) */ + /** Whether or not delays are random (with max = configured values) */ private final boolean randomDelay; - /** expected object */ + /** Expected object */ private final T expectedObject; - /** key used in borrow / return sequence - null means random */ + /** Key used in borrow / return sequence - null means random */ private final String key; private volatile boolean complete; @@ -497,10 +497,10 @@ public void run() { // mvn test -DargLine="-DTestGenericKeyedObjectPool.display.thread.details=true" // @see https://issues.apache.org/jira/browse/SUREFIRE-121 - /** setUp(): {@code new GenericKeyedObjectPool(factory)} */ + /** SetUp(): {@code new GenericKeyedObjectPool(factory)} */ private GenericKeyedObjectPool gkoPool; - /** setUp(): {@code new SimpleFactory()} */ + /** SetUp(): {@code new SimpleFactory()} */ private SimpleFactory simpleFactory; private void checkEvictionOrder(final boolean lifo) throws InterruptedException, TestException { diff --git a/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java b/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java index ab23d66c59..fa6ce6af1e 100644 --- a/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java +++ b/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java @@ -455,25 +455,25 @@ public boolean evict(final EvictionConfig config, final PooledObject underTes static class TestThread implements Runnable { - /** source of random delay times */ + /** Source of random delay times */ private final java.util.Random random; - /** pool to borrow from */ + /** Pool to borrow from */ private final ObjectPool pool; - /** number of borrow attempts */ + /** Number of borrow attempts */ private final int iter; - /** delay before each borrow attempt */ + /** Delay before each borrow attempt */ private final int startDelay; - /** time to hold each borrowed object before returning it */ + /** Time to hold each borrowed object before returning it */ private final int holdTime; - /** whether or not start and hold time are randomly generated */ + /** Whether or not start and hold time are randomly generated */ private final boolean randomDelay; - /** object expected to be borrowed (fail otherwise) */ + /** Object expected to be borrowed (fail otherwise) */ private final Object expectedObject; private volatile boolean complete;