Selaa lähdekoodia

Fix AuthorizationManager T Nullability

Previously AuthorizationManager declared the generic's Nullability
incorrectly. This commit marks it properly.

Closes gh-17667
Rob Winch 1 viikko sitten
vanhempi
commit
a5c38bdc94

+ 1 - 1
core/src/main/java/org/springframework/security/authorization/AuthorizationManager.java

@@ -31,7 +31,7 @@ import org.springframework.security.core.Authentication;
  * @author Evgeniy Cheban
  */
 @FunctionalInterface
-public interface AuthorizationManager<@Nullable T> {
+public interface AuthorizationManager<T extends @Nullable Object> {
 
 	/**
 	 * Determines if access should be granted for a specific authentication and object.