1
0
mirror of synced 2026-08-04 01:07:02 +00:00

Correct equals(Object) method handling if both objects have null getDetails().

This commit is contained in:
Ben Alex
2006-02-09 02:54:40 +00:00
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;
}