frankvicky commented on code in PR #19630: URL: https://github.com/apache/kafka/pull/19630#discussion_r2072583427
########## core/src/test/scala/unit/kafka/server/ReplicaFetcherThreadTest.scala: ########## @@ -169,7 +169,7 @@ class ReplicaFetcherThreadTest { .setLeaderEpoch(0), t1p1 -> new OffsetForLeaderPartition() .setPartition(t1p1.partition) - .setLeaderEpoch(0)).asJava) + .setLeaderEpoch(0)).asJava).asScala val expected = Map( Review Comment: There are lots of unnecessary conversions. Please use `java.util.Map.of` here instead of scala Map. -- 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