You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/10/17 13:04:17 UTC
[commons-pool] branch POOL_2_X updated: No _ in private variable name
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/POOL_2_X by this push:
new 0ec413ce No _ in private variable name
0ec413ce is described below
commit 0ec413ceec8f542434d818412e2a5a981f33645c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 17 09:04:13 2023 -0400
No _ in private variable name
---
.../java/org/apache/commons/pool2/ObjectPoolIssue326.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/test/java/org/apache/commons/pool2/ObjectPoolIssue326.java b/src/test/java/org/apache/commons/pool2/ObjectPoolIssue326.java
index 80f9fb3b..90320856 100644
--- a/src/test/java/org/apache/commons/pool2/ObjectPoolIssue326.java
+++ b/src/test/java/org/apache/commons/pool2/ObjectPoolIssue326.java
@@ -54,12 +54,12 @@ public final class ObjectPoolIssue326 {
}
private static final class Task<E extends Exception> implements Callable<Object> {
- private final GenericKeyedObjectPool<Integer, Object> m_pool;
- private final int m_key;
+ private final GenericKeyedObjectPool<Integer, Object> pool;
+ private final int key;
Task(final GenericKeyedObjectPool<Integer, Object> 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 @@ public final class ObjectPoolIssue326 {
public Object call() throws Exception {
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