From 71c26715503fbf166721ecd948faed4e1f8cc7c7 Mon Sep 17 00:00:00 2001 From: Dmytro Skarzhynets Date: Sun, 15 Nov 2026 16:06:29 +0200 Subject: [PATCH] refactor: use the jakarta.annotation lifecycle annotations in DefaultTbEdgeConsumerService It was the last class of the CE code to use @PostConstruct and @PreDestroy of javax.annotation-api, which is licensed CDDL-1.0 or GPL-2.0 with the Classpath exception. Spring handles the jakarta.annotation ones the same way, as in the rest of the code. --- .../server/service/queue/DefaultTbEdgeConsumerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/main/java/org/thingsboard/server/service/queue/DefaultTbEdgeConsumerService.java b/application/src/main/java/org/thingsboard/server/service/queue/DefaultTbEdgeConsumerService.java index 7b2867be19..e596077fbd 100644 --- a/application/src/main/java/org/thingsboard/server/service/queue/DefaultTbEdgeConsumerService.java +++ b/application/src/main/java/org/thingsboard/server/service/queue/DefaultTbEdgeConsumerService.java @@ -6,6 +6,8 @@ import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.MoreExecutors; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; import org.checkerframework.checker.nullness.qual.Nullable; import org.jetbrains.annotations.NotNull; import org.springframework.beans.factory.annotation.Value; @@ -40,8 +42,6 @@ import org.thingsboard.server.service.edge.rpc.EdgeRpcService; import org.thingsboard.server.service.queue.processing.AbstractConsumerService; import org.thingsboard.server.service.queue.processing.IdMsgPair; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; import java.util.List; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap;