dajac commented on code in PR #12886: URL: https://github.com/apache/kafka/pull/12886#discussion_r1066981875
########## clients/src/main/java/org/apache/kafka/common/requests/OffsetCommitResponse.java: ########## @@ -116,4 +118,80 @@ public void maybeSetThrottleTimeMs(int throttleTimeMs) { public boolean shouldClientThrottle(short version) { return version >= 4; } + + public static class Builder { + OffsetCommitResponseData data = new OffsetCommitResponseData(); + HashMap<String, OffsetCommitResponseTopic> byTopicName = new HashMap<>(); + + private OffsetCommitResponseTopic getOrCreateTopic( Review Comment: That could work as well but I personally prefer `getOrCreate` in this case. `getOrCreate` is used pretty extensively in the code base as well. -- 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