From 91c1d9a619b8f045704542e02b378d13f131731a Mon Sep 17 00:00:00 2001 From: Sergey Matvienko Date: Tue, 27 Oct 2026 20:00:51 +0100 Subject: [PATCH] Shorten isPublishEvictRequired javadoc --- .../org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java b/dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java index a1843b72a5..717466e034 100644 --- a/dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java +++ b/dao/src/main/java/org/thingsboard/server/dao/pat/ApiKeyServiceImpl.java @@ -187,12 +187,8 @@ public class ApiKeyServiceImpl extends AbstractCachedEntityService - * Authentication resolves a key by value straight from the cache, so both the enabled flag and the value must - * trigger an eviction. A regular update preserves the value, but a save with an explicit value (e.g. an edge - * applying a key rotated on the cloud) replaces it, leaving the old value to authenticate from the cache. + * Authentication resolves keys by value straight from the cache, so a changed enabled flag or value (explicit-value + * save, e.g. edge sync) requires eviction. A newly created key has nothing cached yet, hence the null check. */ private static boolean isPublishEvictRequired(ApiKey old, ApiKey apiKey) { return old != null