fvaleri commented on code in PR #13171: URL: https://github.com/apache/kafka/pull/13171#discussion_r1090852796
########## 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: We can create a KAFKA-14525 subtask where we list all pending cleanups/refactorings. You could even reference it in a comment on your PR. -- 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