From 6f8847fc394816fc7988c621e5a71215fabc5d12 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 9 Jan 2025 08:20:55 +0300 Subject: [PATCH] refactoring --- redisson/src/main/java/org/redisson/RedissonBaseLock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redisson/src/main/java/org/redisson/RedissonBaseLock.java b/redisson/src/main/java/org/redisson/RedissonBaseLock.java index 45ce20fcb..4abe6dded 100644 --- a/redisson/src/main/java/org/redisson/RedissonBaseLock.java +++ b/redisson/src/main/java/org/redisson/RedissonBaseLock.java @@ -111,7 +111,7 @@ public abstract class RedissonBaseLock extends RedissonExpirable implements RLoc return entryName; } - protected final String getLockName(long threadId) { + protected String getLockName(long threadId) { return id + ":" + threadId; } @@ -158,7 +158,7 @@ public abstract class RedissonBaseLock extends RedissonExpirable implements RLoc ee.setTimeout(task); } - protected void scheduleExpirationRenewal(long threadId) { + protected final void scheduleExpirationRenewal(long threadId) { ExpirationEntry entry = new ExpirationEntry(); entry.addThreadId(threadId); ExpirationEntry oldEntry = EXPIRATION_RENEWAL_MAP.putIfAbsent(getEntryName(), entry);