This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6b7f54fea3f MINOR: use removal supress warning in 
ClientMetricsTestUtils (#20830)
6b7f54fea3f is described below

commit 6b7f54fea3f93af086d3bbedfb534e547a639d40
Author: Kuan-Po Tseng <[email protected]>
AuthorDate: Wed Nov 5 17:18:39 2025 +0800

    MINOR: use removal supress warning in ClientMetricsTestUtils (#20830)
    
    apply `@SuppressWarnings("removal")` instead of deprecation to get rid
    of build warnings.
    
    Reviewers: Chia-Ping Tsai <[email protected]>
---
 .../java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java
 
b/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java
index e2e8fa2a83a..8e8bb21b7da 100644
--- 
a/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java
+++ 
b/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java
@@ -98,7 +98,7 @@ public class ClientMetricsTestUtils {
             false);
     }
 
-    @SuppressWarnings("deprecation")
+    @SuppressWarnings("removal")
     public static class TestClientMetricsReceiver implements 
ClientTelemetryReceiver {
         public int exportMetricsInvokedCount = 0;
         public List<ByteBuffer> metricsData = new ArrayList<>();
@@ -126,7 +126,7 @@ public class ClientMetricsTestUtils {
      * Test implementation that supports both deprecated and new interfaces.
      * When both are implemented, only the new interface should be used.
      */
-    @SuppressWarnings("deprecation")
+    @SuppressWarnings("removal")
     public static class TestDualImplementation implements ClientTelemetry, 
ClientTelemetryExporterProvider {
         private final TestClientMetricsReceiver receiver;
         private final TestClientTelemetryExporter exporter;

Reply via email to