AndrewJSchofield commented on code in PR #14859:
URL: https://github.com/apache/kafka/pull/14859#discussion_r1411266359
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:
##########
@@ -653,7 +652,7 @@ public Map<TopicPartition, OffsetAndMetadata>
committed(final Set<TopicPartition
try {
maybeThrowInvalidGroupIdException();
if (partitions.isEmpty()) {
- return new HashMap<>();
+ return Collections.emptyMap();
Review Comment:
I made it strictly identical to the previous implementation.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]