Skip to content

Commit

Permalink
Ensure that releases in schedule can be mutated
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Nov 16, 2023
1 parent ce85971 commit 0895791
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package io.spring.calendar.release;

import java.util.ArrayList;
import java.util.List;

/**
Expand All @@ -37,7 +38,7 @@ public final class ReleaseSchedule {
*/
public ReleaseSchedule(String project, List<Release> releases) {
this.project = project;
this.releases = releases;
this.releases = new ArrayList<>(releases);
}

/**
Expand Down

0 comments on commit 0895791

Please sign in to comment.