chia7712 commented on code in PR #19791:
URL: https://github.com/apache/kafka/pull/19791#discussion_r2160075084


##########
jmh-benchmarks/src/main/java/org/apache/kafka/jmh/core/TestPurgatoryPerformance.java:
##########
@@ -313,7 +313,7 @@ public long next() {
         }
 
         public void printStats() {
-            List<Long> samples = 
this.samples.stream().sorted().collect(Collectors.toList());
+            List<Long> samples = this.samples.stream().sorted().toList();

Review Comment:
   could you please replace `collect(Collectors.toList())` by `toList` for 
whole jmh module?



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