Skip to content

Commit

Permalink
Ensure Executions returns an immutable list
Browse files Browse the repository at this point in the history
Issue: #1356
  • Loading branch information
sbrannen committed Dec 19, 2018
1 parent 8927c9d commit 9bb7786
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private Executions(Stream<Execution> executions, String category) {
Preconditions.notNull(events, "Event list must not be null");
Preconditions.containsNoNullElements(events, "Event list must not contain null elements");

this.executions = createExecutions(events);
this.executions = Collections.unmodifiableList(createExecutions(events));
this.category = category;
}

Expand Down

0 comments on commit 9bb7786

Please sign in to comment.