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

Fix equals and hashCode alignment

Fixes gh-4588
This commit is contained in:
Rob Winch
2017-09-28 16:56:28 -05:00
parent 646b3e48b3
commit f3828924ff
6 changed files with 69 additions and 0 deletions
@@ -100,6 +100,13 @@ public class AnonymousAuthenticationToken extends AbstractAuthenticationToken im
return false;
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + this.keyHash;
return result;
}
/**
* Always returns an empty <code>String</code>
*
@@ -120,4 +120,10 @@ public class RememberMeAuthenticationToken extends AbstractAuthenticationToken {
return false;
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + this.keyHash;
return result;
}
}