From a880c846ae3d786f8f3259b34dadfecf0b2d0d06 Mon Sep 17 00:00:00 2001 From: Chengyan <69735000+ChengyanOo@users.noreply.github.com> Date: Sun, 13 Oct 2024 00:04:28 +0800 Subject: [PATCH] KAFKA-17722 Fix "this-escape" compiler warnings (BrokerTopicMetrics) for JDK 23 (#17439) Reviewers: Chia-Ping Tsai --- .../apache/kafka/storage/log/metrics/BrokerTopicMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/src/main/java/org/apache/kafka/storage/log/metrics/BrokerTopicMetrics.java b/storage/src/main/java/org/apache/kafka/storage/log/metrics/BrokerTopicMetrics.java index c638beb1e9a84..a26c57b680d9b 100644 --- a/storage/src/main/java/org/apache/kafka/storage/log/metrics/BrokerTopicMetrics.java +++ b/storage/src/main/java/org/apache/kafka/storage/log/metrics/BrokerTopicMetrics.java @@ -30,7 +30,7 @@ import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; -public class BrokerTopicMetrics { +public final class BrokerTopicMetrics { public static final String MESSAGE_IN_PER_SEC = "MessagesInPerSec"; public static final String BYTES_IN_PER_SEC = "BytesInPerSec"; public static final String BYTES_OUT_PER_SEC = "BytesOutPerSec";