fvaleri commented on code in PR #13171:
URL: https://github.com/apache/kafka/pull/13171#discussion_r1090717453


##########
server-common/src/main/java/org/apache/kafka/server/util/ToolsUtils.java:
##########
@@ -100,4 +104,17 @@ public static void prettyPrintTable(
         printRow(columnLengths, headers, out);
         rows.forEach(row -> printRow(columnLengths, row, out));
     }
+
+    /**
+     * Returns a set of duplicated items.
+     */
+    public static <T> Set<T> findDuplicates(Collection<T> collection) {

Review Comment:
   That was my idea. I think we can drop CoreUtils.duplicates once the last 
command using it is migrated. I renamed from findDuplicates to duplicates, so 
the intention is clear. WDYT?



-- 
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