diff --git a/src/test/java/org/apache/commons/pool3/ObjectPoolIssue326.java b/src/test/java/org/apache/commons/pool3/ObjectPoolIssue326.java index 7ce0f2f50..49dd7d0c5 100644 --- a/src/test/java/org/apache/commons/pool3/ObjectPoolIssue326.java +++ b/src/test/java/org/apache/commons/pool3/ObjectPoolIssue326.java @@ -54,12 +54,12 @@ public PooledObject wrap(final Object o) { } private static final class Task implements Callable { - private final GenericKeyedObjectPool m_pool; - private final int m_key; + private final GenericKeyedObjectPool pool; + private final int key; Task(final GenericKeyedObjectPool pool, final int count) { - m_pool = pool; - m_key = count % 20; + this.pool = pool; + this.key = count % 20; } private void busyWait(final long timeMillis) { @@ -74,12 +74,12 @@ private void busyWait(final long timeMillis) { public Object call() throws E { try { final Object value; - value = m_pool.borrowObject(m_key); + value = pool.borrowObject(key); // don't make this too long or it won't reproduce, and don't make it zero or it // won't reproduce // constant low value also doesn't reproduce busyWait(System.currentTimeMillis() % 4); - m_pool.returnObject(m_key, value); + pool.returnObject(key, value); return "success"; } catch (final NoSuchElementException e) { // ignore, we've exhausted the pool