Skip to content

Commit

Permalink
add @nullable annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Nov 29, 2024
1 parent 72430e2 commit 298b6f7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -43,6 +44,7 @@ public Optional<AuthorizationServer> 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;
Expand Down

0 comments on commit 298b6f7

Please sign in to comment.