corrected ClaimSet equals contract that was preventing cache from workign

This commit is contained in:
David Ribeiro Alves 2012-11-08 20:39:44 -06:00
parent 3aa47bb499
commit 38be409951
1 changed files with 2 additions and 3 deletions

View File

@ -161,7 +161,7 @@ public class ClaimSet extends ForwardingMap<String, String> {
*/
@Override
public int hashCode() {
return Objects.hashCode(claims, emissionTime, expirationTime);
return Objects.hashCode(claims);
}
/**
@ -176,8 +176,7 @@ public class ClaimSet extends ForwardingMap<String, String> {
if (getClass() != obj.getClass())
return false;
ClaimSet other = (ClaimSet) obj;
return equal(claims, other.claims) && equal(this.emissionTime,
other.emissionTime) && equal(this.expirationTime, other.expirationTime);
return equal(claims, other.claims);
}
/**