This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/master by this push:
new b517bfef Make private field
ResilientPooledObjectFactory.Adder.MAX_FAILURES static
b517bfef is described below
commit b517bfefadc96da29acb86b8ed2e38e3f3cdde9c
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sat Jan 18 09:51:19 2025 -0500
Make private field ResilientPooledObjectFactory.Adder.MAX_FAILURES
static
---
.../org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
b/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
index 909b357a..65596f76 100644
---
a/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
+++
b/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
@@ -280,9 +280,11 @@ public class ResilientPooledObjectFactory<T, E extends
Exception> implements Poo
* </ul>
*/
class Adder extends Thread {
+
+ private static final int MAX_FAILURES = 5;
+
private boolean killed = false;
private boolean running = false;
- private final int MAX_FAILURES = 5;
private int failures = 0;
@Override