Skip to content

Commit 68aee9c

Browse files
committed
Use Arrays.asList to create an ArrayList
1 parent 45f4aa8 commit 68aee9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform-tests/src/test/java/org/junit/platform/engine/support/hierarchical/WorkerThreadPoolHierarchicalTestExecutorServiceTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import java.net.URL;
3030
import java.net.URLClassLoader;
3131
import java.time.Instant;
32-
import java.util.ArrayList;
3332
import java.util.Arrays;
3433
import java.util.Collections;
3534
import java.util.List;
@@ -615,7 +614,7 @@ void executesDynamicChildrenInSubmitOrder() throws Exception {
615614
var child4 = new TestTaskStub(ExecutionMode.CONCURRENT) //
616615
.withName("child3").withLevel(2);
617616

618-
List<TestTaskStub> children = new ArrayList<>(List.of(child1, child2, child3, child4));
617+
List<TestTaskStub> children = Arrays.asList(child1, child2, child3, child4);
619618
Collections.shuffle(children);
620619

621620
var root = new TestTaskStub(ExecutionMode.SAME_THREAD, () -> {

0 commit comments

Comments
 (0)