Fix Checkstyle violation in the JdbcLockRegistry

**Cherry-pick to `6.1.x` & `6.0.x`**
This commit is contained in:
Myeonghyeon-Lee
2023-09-18 10:39:37 -04:00
committed by Artem Bilan
parent 50c53e08aa
commit 0f1304494f

View File

@@ -68,7 +68,7 @@ public class JdbcLockRegistry implements ExpirableLockRegistry, RenewableLockReg
private final Lock lock = new ReentrantLock();
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) {
@@ -327,7 +327,7 @@ public class JdbcLockRegistry implements ExpirableLockRegistry, RenewableLockReg
}
public boolean isAcquiredInThisProcess() {
return delegate.isLocked();
return this.delegate.isLocked();
}
public boolean renew() {