Merge pull request #973 from dralves/oauth

ClaimSet equals contract was preventing cache from working
This commit is contained in:
Adrian Cole 2012-11-08 22:19:55 -08:00
commit a6b94c9fa2
1 changed files with 2 additions and 3 deletions

View File

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