Skip to content

Commit 7d091ce

Browse files
committed
Fix Checkstyle violation in the RedisLockRegistry
1 parent 1d4fbbc commit 7d091ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,15 +759,15 @@ protected boolean tryRedisLockInner(long time) throws InterruptedException {
759759
long now = System.currentTimeMillis();
760760
if (time == -1L) {
761761
while (!obtainLock()) {
762-
Thread.sleep(idleBetweenTries.toMillis()); //NOSONAR
762+
Thread.sleep(RedisLockRegistry.this.idleBetweenTries.toMillis()); //NOSONAR
763763
}
764764
return true;
765765
}
766766
else {
767767
long expire = now + TimeUnit.MILLISECONDS.convert(time, TimeUnit.MILLISECONDS);
768768
boolean acquired;
769769
while (!(acquired = obtainLock()) && System.currentTimeMillis() < expire) { //NOSONAR
770-
Thread.sleep(idleBetweenTries.toMillis()); //NOSONAR
770+
Thread.sleep(RedisLockRegistry.this.idleBetweenTries.toMillis()); //NOSONAR
771771
}
772772
return acquired;
773773
}

0 commit comments

Comments
 (0)