From 561c50f84e402db2f398c2b4acf7f3645c3e3a02 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Wed, 2 Sep 2026 20:43:53 +0200 Subject: [PATCH] don't use Set.of; it's not there in Java8 --- .../sap/sse/landscape/impl/GithubReleasesRepository.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/com.sap.sse.landscape/src/com/sap/sse/landscape/impl/GithubReleasesRepository.java b/java/com.sap.sse.landscape/src/com/sap/sse/landscape/impl/GithubReleasesRepository.java index 8df56d48dd9..875fb02c85f 100644 --- a/java/com.sap.sse.landscape/src/com/sap/sse/landscape/impl/GithubReleasesRepository.java +++ b/java/com.sap.sse.landscape/src/com/sap/sse/landscape/impl/GithubReleasesRepository.java @@ -8,6 +8,8 @@ import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; @@ -78,8 +80,8 @@ public class GithubReleasesRepository extends AbstractReleaseRepository implemen * types are commonly seen in the wild for a gzip-compressed tar. We accept all of them so the archive asset is found * regardless of which producer variant published the release. */ - private final static Set ARCHIVE_ASSET_CONTENT_TYPES = Set.of("application/x-tar", "application/gzip", - "application/x-gzip", "application/x-compressed-tar"); + private final static Set ARCHIVE_ASSET_CONTENT_TYPES = new HashSet<>(Arrays.asList("application/x-tar", "application/gzip", + "application/x-gzip", "application/x-compressed-tar")); private final String owner; private final String repositoryName;