chia7712 commented on a change in pull request #10124:
URL: https://github.com/apache/kafka/pull/10124#discussion_r575890707



##########
File path: 
clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
##########
@@ -1106,11 +1107,13 @@ public void assign(Collection<TopicPartition> 
partitions) {
             } else if (partitions.isEmpty()) {
                 this.unsubscribe();
             } else {
-                for (TopicPartition tp : partitions) {
+                partitions.forEach(tp -> {

Review comment:
       It would be nice to make related changes only :)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to