From f6429339d8c945ebb1dae18a51c8c0285eb1b431 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 1 Feb 2024 17:29:13 +0100 Subject: fix(core): remove features that not supported on Java 11 --- .../gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java | 2 +- .../main/java/at/gv/egiz/eaaf/core/impl/data/ExceptionContainer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'eaaf_core_utils') diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java index 52afd2dd..c9bb48df 100644 --- a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java +++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java @@ -57,7 +57,7 @@ public class InlineKeyStoreParser extends URLStreamHandler { // parse basis properties from URL final Map> queryParams = parseQuery(configUrl.getQuery()); final String[] certificateFiles = queryParams.getOrDefault("cert", Collections.emptyList()) - .toArray(String[]::new); + .stream().toArray(String[]::new); if ("keystore".equalsIgnoreCase(configUrl.getPath())) { parseKeyStore(keyStoreBuilder, queryParams, certificateFiles); diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/data/ExceptionContainer.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/data/ExceptionContainer.java index e7f952e4..ddc9a4d2 100644 --- a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/data/ExceptionContainer.java +++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/data/ExceptionContainer.java @@ -58,7 +58,7 @@ public class ExceptionContainer implements Serializable { private static final Set> ALLOWED_CLASS_TYPES = Stream.of( Throwable.class, StackTraceElement.class, StackTraceElement[].class, Collections.EMPTY_LIST.getClass(), Integer.class, Long.class, Double.class, Float.class, String.class, Number.class) - .collect(Collectors.toUnmodifiableSet()); + .collect(Collectors.toSet()); /** * Error that was thrown. -- cgit v1.2.3