OmniaGM commented on code in PR #13171: URL: https://github.com/apache/kafka/pull/13171#discussion_r1090808339
########## 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: sounds like a plan. Am working on other cli commands that use the `CoreUtils.duplicates` so keep a note to remove it with the last command. -- 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