mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
Correct equals(Object) method handling if both objects have null getDetails().
This commit is contained in:
parent
78df09db8a
commit
77be0009ad
@ -78,6 +78,10 @@ public class AnonymousAuthenticationToken extends AbstractAuthenticationToken
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((this.details == null) && (test.getDetails() == null)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((this.details == null) && (test.getDetails() != null)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user