MINOR: Cleanup JMH-Benchmarks Module
Now that Kafka supports Java 17, this PR makes some changes in jmh-benchmarks module. The changes mostly include:
- Collections.emptyList(), Collections.singletonList() and Arrays.asList() are replaced with List.of()
- Collections.emptyMap() and Collections.singletonMap() are replaced with Map.of()
- Collections.singleton() is replaced with Set.of()
Thanks for the PR. Could you also do this cleanup? Collections.unmodifiableMap -> Map.copyOf
Thanks @Yunyung for the review. I have addressed the comment. PTAL when possible!
Please resolve the conflict, thanks
Hey @m1a2st I have updated the PR
cc: @frankvicky
Hey @frankvicky If you can pls have a look at this PR too.
Gentle reminder @frankvicky @chia7712
Gentle reminder @chia7712 @frankvicky
Hey @chia7712 Gentle reminder!