You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "chia7712 (via GitHub)" <gi...@apache.org> on 2026/09/01 14:02:43 UTC

Re: [PR] MINOR: follow-up Replace Collections factory methods with Java 11+ equivalents in streams [kafka]

chia7712 commented on code in PR #23313:
URL: https://github.com/apache/kafka/pull/23313#discussion_r3904894070


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/ThreadMetadataImpl.java:
##########
@@ -57,7 +57,7 @@ public ThreadMetadataImpl(final String threadName,
                               final Set<TaskMetadata> standbyTasks) {
         this.mainConsumerClientId = mainConsumerClientId;
         this.restoreConsumerClientId = restoreConsumerClientId;
-        this.producerClientIds = producerClientIds != null ? Set.of(producerClientIds) : Set.of();
+        this.producerClientIds = Set.of(producerClientIds);

Review Comment:
   @see-quick Would you mind explaining the reasoning behind these changes in the PR description?



-- 
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-unsubscribe@kafka.apache.org

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