Fix Nullability
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
This commit is contained in:
committed by
github-actions[bot]
parent
02f5f5a459
commit
8525cbfd19
+1
-1
@@ -72,7 +72,7 @@ public class DelegatingSecurityContextAsyncTaskExecutor extends DelegatingSecuri
|
||||
}
|
||||
|
||||
@Override
|
||||
public final <T> Future<T> submit(Callable<T> task) {
|
||||
public final <T extends @Nullable Object> Future<T> submit(Callable<T> task) {
|
||||
return getDelegate().submit(wrap(task));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ public final class InMemoryOidcSessionRegistry implements OidcSessionRegistry {
|
||||
}
|
||||
|
||||
@Override
|
||||
public OidcSessionInformation removeSessionInformation(String clientSessionId) {
|
||||
public @Nullable OidcSessionInformation removeSessionInformation(String clientSessionId) {
|
||||
OidcSessionInformation information = this.sessions.remove(clientSessionId);
|
||||
if (information != null) {
|
||||
this.logger.trace("Removed client session");
|
||||
|
||||
+3
-1
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.security.oauth2.client.oidc.session;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.springframework.security.oauth2.client.oidc.authentication.logout.OidcLogoutToken;
|
||||
|
||||
/**
|
||||
@@ -44,7 +46,7 @@ public interface OidcSessionRegistry {
|
||||
* @param clientSessionId the client session
|
||||
* @return any found {@link OidcSessionInformation}, could be {@code null}
|
||||
*/
|
||||
OidcSessionInformation removeSessionInformation(String clientSessionId);
|
||||
@Nullable OidcSessionInformation removeSessionInformation(String clientSessionId);
|
||||
|
||||
/**
|
||||
* Deregister the OIDC Provider sessions referenced by the provided OIDC Logout Token
|
||||
|
||||
Reference in New Issue
Block a user