apoorvmittal10 commented on code in PR #18232:
URL: https://github.com/apache/kafka/pull/18232#discussion_r1899487124


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchMetricsManager.java:
##########
@@ -24,15 +24,18 @@
 import org.apache.kafka.common.metrics.stats.WindowedCount;
 
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 
+import static org.apache.kafka.common.utils.Utils.mkEntry;
+import static org.apache.kafka.common.utils.Utils.mkMap;
+
 /**
  * The {@link FetchMetricsManager} class provides wrapper methods to record 
lag, lead, latency, and fetch metrics.
  * It keeps an internal ID of the assigned set of partitions which is updated 
to ensure the set of metrics it
  * records matches up with the topic-partitions in use.
  */
+@SuppressWarnings("deprecation")

Review Comment:
   Yes you are right, I have corrected it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to