philipnee commented on code in PR #16140: URL: https://github.com/apache/kafka/pull/16140#discussion_r1623649872
########## clients/src/test/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkThreadTest.java: ########## @@ -339,6 +358,15 @@ void testRunOnceInvokesReaper() { verify(applicationEventReaper).reap(any(Long.class)); } + private HashMap<TopicPartition, OffsetAndMetadata> mockTopicPartitionOffset() { + final TopicPartition t0 = new TopicPartition("t0", 2); + final TopicPartition t1 = new TopicPartition("t0", 3); + HashMap<TopicPartition, OffsetAndMetadata> topicPartitionOffsets = new HashMap<>(); Review Comment: 1. this can be final as well 2. let's use Map on the left side. -- 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