Skip to content

Commit

Permalink
Errorneously appending to immutable list
Browse files Browse the repository at this point in the history
  • Loading branch information
Karm authored and zakkak committed Jun 23, 2023
1 parent a617f18 commit 3b40a21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions release-scripts/mandrel-release.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ void createGHRelease(Set<String> jdkVersionsUsed)

private List<File> assets(String fullVersion)
{
final List<File> assets = List.of(
new File(downloadDir, "mandrel-java17-linux-amd64-" + fullVersion + ".tar.gz"),
new File(downloadDir, "mandrel-java17-linux-aarch64-" + fullVersion + ".tar.gz"),
new File(downloadDir, "mandrel-java17-windows-amd64-" + fullVersion + ".zip")
);
final List<File> assets = new ArrayList<>(List.of(
new File(downloadDir, "mandrel-java17-linux-amd64-" + fullVersion + ".tar.gz"),
new File(downloadDir, "mandrel-java17-linux-aarch64-" + fullVersion + ".tar.gz"),
new File(downloadDir, "mandrel-java17-windows-amd64-" + fullVersion + ".zip")
));
final int major = Integer.parseInt(fullVersion.substring(0, 2));
if (major == 21)
{
Expand Down

0 comments on commit 3b40a21

Please sign in to comment.