Parkerhiphop commented on code in PR #19376:
URL: https://github.com/apache/kafka/pull/19376#discussion_r2029101369


##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/FetcherTest.java:
##########
@@ -3664,7 +3664,6 @@ public void testFetcherDontCacheAnyData() {
         responseData.forEach((topicPartition, partitionData) -> 
assertEquals(records, partitionData.records()));
         LinkedHashMap<TopicPartition, FetchResponseData.PartitionData> 
nonResponseData = fetchResponse.responseData(emptyMap(), version);
         assertEquals(emptyMap().size(), nonResponseData.size());

Review Comment:
   Thanks, @chia7712 and @frankvicky, for reminding me about the missing 
comment.
   
   I think the `isEmpty` approach helps prevent potential future mistakes, so 
I've adopted it.



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

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

Reply via email to