summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2024-02-01 17:29:13 +0100
committerThomas <>2024-02-01 17:29:13 +0100
commitf6429339d8c945ebb1dae18a51c8c0285eb1b431 (patch)
treee0a14a5ddfd16b684516b5d86d5339ea05c672aa
parentc9886d89daa2a36b4cd96f4e956ef9e59aee291c (diff)
downloadEAAF-Components-f6429339d8c945ebb1dae18a51c8c0285eb1b431.tar.gz
EAAF-Components-f6429339d8c945ebb1dae18a51c8c0285eb1b431.tar.bz2
EAAF-Components-f6429339d8c945ebb1dae18a51c8c0285eb1b431.zip
fix(core): remove features that not supported on Java 11
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/TicketErrorService.java2
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/credential/inline/InlineKeyStoreParser.java2
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/data/ExceptionContainer.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/TicketErrorService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/TicketErrorService.java
index 08fe2159..bb0e9928 100644
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/TicketErrorService.java
+++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/TicketErrorService.java
@@ -155,7 +155,7 @@ public abstract class TicketErrorService implements IErrorService {
return modelExtensionHandlers.stream()
.map(el -> el.elementsForErrorModel(protocolRequest))
.flatMap(m -> m.entrySet().stream())
- .collect(Collectors.toUnmodifiableMap(Map.Entry::getKey, Map.Entry::getValue));
+ .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
}
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<String, List<String>> 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<Class<?>> 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.