Skip to content

Commit 9bb7786

Browse files
committed
Ensure Executions returns an immutable list
Issue: #1356
1 parent 8927c9d commit 9bb7786

File tree

1 file changed

+1
-1
lines changed
  • junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine

1 file changed

+1
-1
lines changed

junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/Executions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private Executions(Stream<Execution> executions, String category) {
5656
Preconditions.notNull(events, "Event list must not be null");
5757
Preconditions.containsNoNullElements(events, "Event list must not contain null elements");
5858

59-
this.executions = createExecutions(events);
59+
this.executions = Collections.unmodifiableList(createExecutions(events));
6060
this.category = category;
6161
}
6262

0 commit comments

Comments
 (0)