nizhikov commented on code in PR #14856: URL: https://github.com/apache/kafka/pull/14856#discussion_r1457691847
########## clients/src/main/java/org/apache/kafka/common/utils/Utils.java: ########## @@ -1492,6 +1501,20 @@ public static <E> Set<E> diff(final Supplier<Set<E>> constructor, final Set<E> l return result; } + /** + * @param set Source set. + * @param toRemove Elements to remove. + * @return {@code set} copy without {@code toRemove} elements. + * @param <T> Element type. + */ + @SuppressWarnings("unchecked") + public static <T> Set<T> minus(Set<T> set, T...toRemove) { Review Comment: Moved ########## clients/src/main/java/org/apache/kafka/common/utils/Utils.java: ########## @@ -594,6 +594,15 @@ public static <T> String join(T[] strs, String separator) { return join(Arrays.asList(strs), separator); } + /** + * Create a string representation of a collection joined by ", ". + * @param collection The list of items + * @return The string representation. + */ + public static <T> String join(Collection<T> collection) { Review Comment: Method removed -- 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