rreddy-22 commented on code in PR #14099: URL: https://github.com/apache/kafka/pull/14099#discussion_r1275342001
########## group-coordinator/src/test/java/org/apache/kafka/coordinator/group/consumer/TargetAssignmentBuilderTest.java: ########## @@ -145,13 +147,13 @@ public TargetAssignmentBuilder.TargetAssignmentResult build() { Map<String, AssignmentMemberSpec> memberSpecs = new HashMap<>(); // All the existing members are prepared. - members.forEach((memberId, member) -> { - memberSpecs.put(memberId, createAssignmentMemberSpec( + members.forEach((memberId, member) -> memberSpecs.put(memberId, + createAssignmentMemberSpec( member, targetAssignment.getOrDefault(memberId, Assignment.EMPTY), subscriptionMetadata - )); - }); + ) Review Comment: I think this is more readable since the next lines are arguments for createAssignmentMemberSpec and the way above I have to look a lot from right to left to see what the arguments are for. I feel like this makes more sense here -- 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