Skip to content

Commit 6b7f54f

Browse files
authored
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]>
1 parent 83bfbfe commit 6b7f54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static RequestContext requestContextWithConnectionId(String connectionId)
9898
false);
9999
}
100100

101-
@SuppressWarnings("deprecation")
101+
@SuppressWarnings("removal")
102102
public static class TestClientMetricsReceiver implements ClientTelemetryReceiver {
103103
public int exportMetricsInvokedCount = 0;
104104
public List<ByteBuffer> metricsData = new ArrayList<>();
@@ -126,7 +126,7 @@ public void exportMetrics(ClientTelemetryContext context, ClientTelemetryPayload
126126
* Test implementation that supports both deprecated and new interfaces.
127127
* When both are implemented, only the new interface should be used.
128128
*/
129-
@SuppressWarnings("deprecation")
129+
@SuppressWarnings("removal")
130130
public static class TestDualImplementation implements ClientTelemetry, ClientTelemetryExporterProvider {
131131
private final TestClientMetricsReceiver receiver;
132132
private final TestClientTelemetryExporter exporter;

0 commit comments

Comments
 (0)