Skip to content

Commit b517bfe

Browse files
committed
Make private field ResilientPooledObjectFactory.Adder.MAX_FAILURES
static
1 parent 66805ce commit b517bfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,11 @@ public void stopMonitor() {
280280
* </ul>
281281
*/
282282
class Adder extends Thread {
283+
284+
private static final int MAX_FAILURES = 5;
285+
283286
private boolean killed = false;
284287
private boolean running = false;
285-
private final int MAX_FAILURES = 5;
286288
private int failures = 0;
287289

288290
@Override

0 commit comments

Comments
 (0)