Skip to content

Commit eae6d1b

Browse files
committed
Don't initialize instance variables to their default values
1 parent 76cd031 commit eae6d1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* @param <E> Type of exception that the factory may throw
3939
*/
4040
public class ResilientPooledObjectFactory<T, E extends Exception> implements PooledObjectFactory<T, E> {
41+
4142
private static final int DEFAULT_LOG_SIZE = 10;
4243
private static final Duration DEFAULT_DELAY = Duration.ofSeconds(1);
4344
private static final Duration DEFAULT_LOOK_BACK = Duration.ofMinutes(5);
@@ -65,13 +66,13 @@ public class ResilientPooledObjectFactory<T, E extends Exception> implements Poo
6566
* @return the factory wrapped by this resilient factory
6667
*/
6768
/** Whether or not the monitor thread is running */
68-
private boolean monitoring = false;
69+
private boolean monitoring;
6970
/** Time to wait between object creations by the adder thread */
7071
private final Duration delay;
7172
/** Time between monitor checks */
7273
private Duration timeBetweenChecks = Duration.ofSeconds(10);
7374
/** Adder thread */
74-
private Adder adder = null;
75+
private Adder adder;
7576

7677
/**
7778
* Construct a ResilientPooledObjectFactory from a factory with specified

0 commit comments

Comments
 (0)