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
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue