Fix Checkstyle violation in the JdbcLockRegistry

**Cherry-pick to `6.1.x` & `6.0.x`**

(cherry picked from commit 0f1304494f)
This commit is contained in:
Myeonghyeon-Lee
2023-09-18 10:39:37 -04:00
committed by Artem Bilan
parent e8cf812b31
commit e2ccd10549

View File

@@ -65,7 +65,7 @@ public class JdbcLockRegistry implements ExpirableLockRegistry, RenewableLockReg
private static final int DEFAULT_CAPACITY = 100_000;
private final Map<String, JdbcLock> locks =
new LinkedHashMap<String, JdbcLock>(16, 0.75F, true) {
new LinkedHashMap<>(16, 0.75F, true) {
@Override
protected boolean removeEldestEntry(Entry<String, JdbcLock> eldest) {
@@ -311,7 +311,7 @@ public class JdbcLockRegistry implements ExpirableLockRegistry, RenewableLockReg
}
public boolean isAcquiredInThisProcess() {
return delegate.isLocked();
return this.delegate.isLocked();
}
public boolean renew() {