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 eae6d1bd Don't initialize instance variables to their default values
eae6d1bd is described below

commit eae6d1bd8dd311e6727835a3199750bc42c63f96
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jan 18 09:52:37 2025 -0500

    Don't initialize instance variables to their default values
---
 .../org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 8b10b527..885bce3b 100644
--- 
a/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
+++ 
b/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
@@ -38,6 +38,7 @@ import org.apache.commons.pool3.PooledObjectFactory;
  * @param <E> Type of exception that the factory may throw
  */
 public class ResilientPooledObjectFactory<T, E extends Exception> implements 
PooledObjectFactory<T, E> {
+
     private static final int DEFAULT_LOG_SIZE = 10;
     private static final Duration DEFAULT_DELAY = Duration.ofSeconds(1);
     private static final Duration DEFAULT_LOOK_BACK = Duration.ofMinutes(5);
@@ -65,13 +66,13 @@ public class ResilientPooledObjectFactory<T, E extends 
Exception> implements Poo
      * @return the factory wrapped by this resilient factory
      */
     /** Whether or not the monitor thread is running */
-    private boolean monitoring = false;
+    private boolean monitoring;
     /** Time to wait between object creations by the adder thread */
     private final Duration delay;
     /** Time between monitor checks */
     private Duration timeBetweenChecks = Duration.ofSeconds(10);
     /** Adder thread */
-    private Adder adder = null;
+    private Adder adder;
 
     /**
      * Construct a ResilientPooledObjectFactory from a factory with specified

Reply via email to