mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-14 16:12:14 +00:00
SEC-2683: Correct spelling of assignamble in AuthenticationPrincipalResolver Exception
This commit is contained in:
parent
85a37bdc02
commit
89d80ed5c9
@ -106,7 +106,7 @@ public final class AuthenticationPrincipalArgumentResolver implements
|
||||
if(principal != null && !parameter.getParameterType().isAssignableFrom(principal.getClass())) {
|
||||
AuthenticationPrincipal authPrincipal = findMethodAnnotation(AuthenticationPrincipal.class, parameter);
|
||||
if(authPrincipal.errorOnInvalidType()) {
|
||||
throw new ClassCastException(principal + " is not assiable to " + parameter.getParameterType());
|
||||
throw new ClassCastException(principal + " is not assignable to " + parameter.getParameterType());
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user