mirror of https://github.com/apache/jclouds.git
Merge pull request #973 from dralves/oauth
ClaimSet equals contract was preventing cache from working
This commit is contained in:
commit
a6b94c9fa2
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue