You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "see-quick (via GitHub)" <gi...@apache.org> on 2026/09/26 19:07:08 UTC

[PR] MINOR: Replace Collections factory methods with Java 11+ equivalents in clients consumer, producer and admin [kafka]

see-quick opened a new pull request, #23592:
URL: https://github.com/apache/kafka/pull/23592

   This is the 7th part of replacing Collections factory methods with their Java 11 equivalents, covering `org.apache.kafka.clients.*` and `org.apache.kafka.server.authorizer` in the clients module. This finishes
   the clients main sources.
   
   The following call sites intentionally keep Collections.* because a null can reach them still, : `AdminApiHandler.ApiResult#completed: AbortTransactionHandler completes with a null value, and Admin#listConsumerGroupOffsets(String, ...). Moreover also, KafkaAdminClient getMembersFromGroup, abortTransaction and forceTerminateTransaction.
   
   RangeAssignor.TopicAssignmentState also keeps Collections.emptyList() because the list is passed to Collections.sort, which is a no-op on Collections.emptyList() but throws UnsupportedOperationException on List.of().


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


Re: [PR] MINOR: Replace Collections factory methods with Java 11+ equivalents in clients consumer, producer and admin [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23592:
URL: https://github.com/apache/kafka/pull/23592#issuecomment-6030249093

   A label of 'needs-attention' was automatically added to this PR in order to raise the
   attention of the committers. Once this issue has been triaged, the `triage` label
   should be removed to prevent this automation from happening again.


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