mirror of https://github.com/apache/kafka.git
MINOR: suppress removal warnings for listClientMetricsResources (#19787)
CI / build (push) Waiting to run
Details
CI / build (push) Waiting to run
Details
suppress removal warnings for `listClientMetricsResources` Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
aacf3a4b3d
commit
5c3d7512de
|
@ -1399,8 +1399,8 @@ public class MockAdminClient extends AdminClient {
|
||||||
throw new UnsupportedOperationException("Not implemented yet");
|
throw new UnsupportedOperationException("Not implemented yet");
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings({"deprecation", "removal"})
|
||||||
public ListClientMetricsResourcesResult listClientMetricsResources(ListClientMetricsResourcesOptions options) {
|
public ListClientMetricsResourcesResult listClientMetricsResources(ListClientMetricsResourcesOptions options) {
|
||||||
KafkaFutureImpl<Collection<ClientMetricsResourceListing>> future = new KafkaFutureImpl<>();
|
KafkaFutureImpl<Collection<ClientMetricsResourceListing>> future = new KafkaFutureImpl<>();
|
||||||
future.complete(clientMetricsConfigs.keySet().stream().map(ClientMetricsResourceListing::new).collect(Collectors.toList()));
|
future.complete(clientMetricsConfigs.keySet().stream().map(ClientMetricsResourceListing::new).collect(Collectors.toList()));
|
||||||
|
|
Loading…
Reference in New Issue