From fd58cb1bec4030f64dd56a8c265153f406708b5b Mon Sep 17 00:00:00 2001 From: Tero Saarni Date: Thu, 23 Nov 2023 14:12:43 +0200 Subject: [PATCH] Attempt to remove warning about not using inference Signed-off-by: Tero Saarni --- .../resources/admin/info/ServerInfoAdminResource.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/info/ServerInfoAdminResource.java b/services/src/main/java/org/keycloak/services/resources/admin/info/ServerInfoAdminResource.java index 8785ad9db4..1b526636e0 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/info/ServerInfoAdminResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/info/ServerInfoAdminResource.java @@ -113,10 +113,12 @@ public class ServerInfoAdminResource { Collectors.toMap( ClientSignatureVerifierProvider::isAsymmetricAlgorithm, clientSignatureVerifier -> Collections.singletonList(clientSignatureVerifier.getAlgorithm()), - (l1, l2) -> ServerInfoAdminResource.listCombiner(l1, l2) - .stream() - .sorted() - .collect(Collectors.toList()), + (l1, l2) -> { + List result = listCombiner(l1, l2); + return result.stream() + .sorted() + .collect(Collectors.toList()); + }, HashMap::new ) );