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
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ public class AnonymousAuthenticationToken extends AbstractAuthenticationToken
return false; return false;
} }
if ((this.details == null) && (test.getDetails() == null)) {
return true;
}
if ((this.details == null) && (test.getDetails() != null)) { if ((this.details == null) && (test.getDetails() != null)) {
return false; return false;
} }