diff --git a/core/src/main/java/org/jclouds/domain/internal/MutableResourceMetadataImpl.java b/core/src/main/java/org/jclouds/domain/internal/MutableResourceMetadataImpl.java index 9d7cca80d6..973eb930be 100644 --- a/core/src/main/java/org/jclouds/domain/internal/MutableResourceMetadataImpl.java +++ b/core/src/main/java/org/jclouds/domain/internal/MutableResourceMetadataImpl.java @@ -175,7 +175,8 @@ public class MutableResourceMetadataImpl> implements MutableRe @Override public int hashCode() { - return Objects.hashCode(id, location, name, type, uri, userMetadata); + // intentionally not hashing userMetadata + return Objects.hashCode(id, location, name, type, uri); } @Override @@ -191,8 +192,8 @@ public class MutableResourceMetadataImpl> implements MutableRe && Objects.equal(location, other.getLocation()) && Objects.equal(name, other.getName()) && Objects.equal(type, other.getType()) - && Objects.equal(uri, other.getUri()) - && Objects.equal(userMetadata, other.getUserMetadata()); + && Objects.equal(uri, other.getUri()); + // intentionally not comparing userMetadata } } diff --git a/core/src/main/java/org/jclouds/domain/internal/ResourceMetadataImpl.java b/core/src/main/java/org/jclouds/domain/internal/ResourceMetadataImpl.java index 7426b97deb..a46b3c4f78 100644 --- a/core/src/main/java/org/jclouds/domain/internal/ResourceMetadataImpl.java +++ b/core/src/main/java/org/jclouds/domain/internal/ResourceMetadataImpl.java @@ -114,13 +114,14 @@ public abstract class ResourceMetadataImpl> implements Resourc return false; ResourceMetadataImpl that = ResourceMetadataImpl.class.cast(o); return equal(this.getType(), that.getType()) && equal(this.providerId, that.providerId) - && equal(this.name, that.name) && equal(this.location, that.location) && equal(this.uri, that.uri) - && equal(this.userMetadata, that.userMetadata); + && equal(this.name, that.name) && equal(this.location, that.location) && equal(this.uri, that.uri); + // intentionally not comparing userMetadata } @Override public int hashCode() { - return Objects.hashCode(getType(), providerId, name, location, uri, userMetadata); + return Objects.hashCode(getType(), providerId, name, location, uri); + // intentionally not hashing userMetadata } @Override