Pankraz76 commented on code in PR #20214:
URL: https://github.com/apache/kafka/pull/20214#discussion_r2222827608
##########
trogdor/src/test/java/org/apache/kafka/trogdor/workload/PayloadGeneratorTest.java:
##########
@@ -146,8 +146,8 @@ public void testRandomComponentPayloadGenerator() {
new ConstantPayloadGenerator(4, new byte[0]);
RandomComponent constantConfig = new RandomComponent(25,
constantGenerator);
- List<RandomComponent> components1 = new
ArrayList<>(Arrays.asList(nullConfig, uniformConfig));
- List<RandomComponent> components2 = new
ArrayList<>(Arrays.asList(sequentialConfig, constantConfig));
+ List<RandomComponent> components1 = new
ArrayList<>(List.of(nullConfig, uniformConfig));
+ List<RandomComponent> components2 = new
ArrayList<>(List.of(sequentialConfig, constantConfig));
Review Comment:
kindly considering possible solution for this to avoid/align:
-
https://docs.openrewrite.org/recipes/java/migrate/util/migratecollectionsunmodifiablelist
- https://github.com/apache/kafka/pull/20219
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]