From 7d091cecf4aa6f9b0cacdc6c5ca65d0da9d4695b Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 8 Oct 2024 12:45:54 -0400 Subject: [PATCH] Fix Checkstyle violation in the `RedisLockRegistry` --- .../integration/redis/util/RedisLockRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java b/spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java index 2e8a8c1070..5b05127fa7 100644 --- a/spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java +++ b/spring-integration-redis/src/main/java/org/springframework/integration/redis/util/RedisLockRegistry.java @@ -759,7 +759,7 @@ public final class RedisLockRegistry implements ExpirableLockRegistry, Disposabl long now = System.currentTimeMillis(); if (time == -1L) { while (!obtainLock()) { - Thread.sleep(idleBetweenTries.toMillis()); //NOSONAR + Thread.sleep(RedisLockRegistry.this.idleBetweenTries.toMillis()); //NOSONAR } return true; } @@ -767,7 +767,7 @@ public final class RedisLockRegistry implements ExpirableLockRegistry, Disposabl long expire = now + TimeUnit.MILLISECONDS.convert(time, TimeUnit.MILLISECONDS); boolean acquired; while (!(acquired = obtainLock()) && System.currentTimeMillis() < expire) { //NOSONAR - Thread.sleep(idleBetweenTries.toMillis()); //NOSONAR + Thread.sleep(RedisLockRegistry.this.idleBetweenTries.toMillis()); //NOSONAR } return acquired; }