You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/02/15 00:30:37 UTC
[GitHub] [kafka] chia7712 commented on a change in pull request #10124: MINOR: apply Utils.isBlank to code base
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:
users@infra.apache.org