Skip to content

Commit 62d472f

Browse files
committed
Fix Sonar issue
1 parent f600361 commit 62d472f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock/JdbcLockRegistry.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@
5252
*/
5353
public class JdbcLockRegistry implements ExpirableLockRegistry {
5454

55+
private static final int DEFAULT_IDLE = 100;
56+
5557
private final Map<String, JdbcLock> locks = new ConcurrentHashMap<>();
5658

5759
private final LockRepository client;
5860

59-
private Duration idleBetweenTries = Duration.ofMillis(100);
61+
private Duration idleBetweenTries = Duration.ofMillis(DEFAULT_IDLE);
6062

6163
public JdbcLockRegistry(LockRepository client) {
6264
this.client = client;

0 commit comments

Comments
 (0)