Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 14, 2023
1 parent d5617cb commit bbd39e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,17 +359,17 @@ static class TestThread<T, E extends Exception> implements Runnable {

/** GKOP to hit */
private final KeyedObjectPool<String, T, E> 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;
Expand Down Expand Up @@ -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<String,String>(factory)} */
/** SetUp(): {@code new GenericKeyedObjectPool<String,String>(factory)} */
private GenericKeyedObjectPool<String, String, TestException> gkoPool;

/** setUp(): {@code new SimpleFactory<String>()} */
/** SetUp(): {@code new SimpleFactory<String>()} */
private SimpleFactory<String> simpleFactory;

private void checkEvictionOrder(final boolean lifo) throws InterruptedException, TestException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,25 +455,25 @@ public boolean evict(final EvictionConfig config, final PooledObject<T> underTes

static class TestThread<T, E extends Exception> 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<T, E> 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;
Expand Down

0 comments on commit bbd39e4

Please sign in to comment.