From 3b40a21a30e29df6a0f84bb47f9ddef8f5a7a890 Mon Sep 17 00:00:00 2001 From: Michal Karm Babacek Date: Wed, 14 Jun 2023 13:19:40 +0200 Subject: [PATCH] Errorneously appending to immutable list --- release-scripts/mandrel-release.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release-scripts/mandrel-release.java b/release-scripts/mandrel-release.java index 4682436b..7e42d108 100755 --- a/release-scripts/mandrel-release.java +++ b/release-scripts/mandrel-release.java @@ -333,11 +333,11 @@ void createGHRelease(Set jdkVersionsUsed) private List assets(String fullVersion) { - final List 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 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) {