mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-22 03:52:15 +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())) {
|
if(principal != null && !parameter.getParameterType().isAssignableFrom(principal.getClass())) {
|
||||||
AuthenticationPrincipal authPrincipal = findMethodAnnotation(AuthenticationPrincipal.class, parameter);
|
AuthenticationPrincipal authPrincipal = findMethodAnnotation(AuthenticationPrincipal.class, parameter);
|
||||||
if(authPrincipal.errorOnInvalidType()) {
|
if(authPrincipal.errorOnInvalidType()) {
|
||||||
throw new ClassCastException(principal + " is not assiable to " + parameter.getParameterType());
|
throw new ClassCastException(principal + " is not assignable to " + parameter.getParameterType());
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user