From 298b6f7907cf113d7e9fd82a91b01c7daf122d20 Mon Sep 17 00:00:00 2001 From: Sergio del Amo Date: Fri, 29 Nov 2024 10:39:30 +0100 Subject: [PATCH] add @Nullable annotation --- .../endsession/request/DefaultAuthorizationServerResolver.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security-oauth2/src/main/java/io/micronaut/security/oauth2/endpoint/endsession/request/DefaultAuthorizationServerResolver.java b/security-oauth2/src/main/java/io/micronaut/security/oauth2/endpoint/endsession/request/DefaultAuthorizationServerResolver.java index 75f0890bd0..51e3ef6338 100644 --- a/security-oauth2/src/main/java/io/micronaut/security/oauth2/endpoint/endsession/request/DefaultAuthorizationServerResolver.java +++ b/security-oauth2/src/main/java/io/micronaut/security/oauth2/endpoint/endsession/request/DefaultAuthorizationServerResolver.java @@ -17,6 +17,7 @@ import io.micronaut.core.annotation.Internal; import io.micronaut.core.annotation.NonNull; +import io.micronaut.core.annotation.Nullable; import jakarta.inject.Singleton; import java.util.Map; @@ -43,6 +44,7 @@ public Optional resolve(@NonNull String issuer) { return Optional.ofNullable(cache.computeIfAbsent(issuer, DefaultAuthorizationServerResolver::infer)); } + @Nullable static AuthorizationServer infer (@NonNull String issuer) { if (issuer.contains(ISSUER_PART_ORACLE_CLOUD)) { return AuthorizationServer.ORACLE_CLOUD;