frankvicky commented on code in PR #19519:
URL: https://github.com/apache/kafka/pull/19519#discussion_r2053226336


##########
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java:
##########
@@ -3746,7 +3746,9 @@ private MetricName expectedMetricName(String clientId, 
String config, Class<?> c
 
     private static final String NAME = "name";
     private static final String DESCRIPTION = "description";
-    private static final Map<String, String> TAGS = 
Collections.singletonMap("k", "v");
+    private static final LinkedHashMap<String, String> TAGS = new 
LinkedHashMap<>() {{
+            put("k", "v");
+        }};

Review Comment:
   nit: Could we use a static block instead of double brace initialization?



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to