mirror of https://github.com/apache/jclouds.git
corrected equals/hashCode as map builder doesn't honor that
This commit is contained in:
parent
1864606d4e
commit
4ffe56c979
|
@ -113,7 +113,7 @@ public class CreateQueueOptions extends BaseHttpRequestOptions implements Clonea
|
|||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(attributes);
|
||||
return Objects.hashCode(attributes.build());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -133,7 +133,7 @@ public class CreateQueueOptions extends BaseHttpRequestOptions implements Clonea
|
|||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
CreateQueueOptions other = CreateQueueOptions.class.cast(obj);
|
||||
return Objects.equal(this.attributes, other.attributes);
|
||||
return Objects.equal(this.attributes.build(), other.attributes.build());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -128,7 +128,7 @@ public class ReceiveMessageOptions extends BaseHttpRequestOptions implements Clo
|
|||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(visibilityTimeout, attributes);
|
||||
return Objects.hashCode(visibilityTimeout, attributes.build());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -149,7 +149,7 @@ public class ReceiveMessageOptions extends BaseHttpRequestOptions implements Clo
|
|||
return false;
|
||||
ReceiveMessageOptions other = ReceiveMessageOptions.class.cast(obj);
|
||||
return Objects.equal(this.visibilityTimeout, other.visibilityTimeout)
|
||||
&& Objects.equal(this.attributes, other.attributes);
|
||||
&& Objects.equal(this.attributes.build(), other.attributes.build());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue