diff --git a/fixture-monkey-api/src/main/java/com/navercorp/fixturemonkey/api/property/ConstructorProperty.java b/fixture-monkey-api/src/main/java/com/navercorp/fixturemonkey/api/property/ConstructorProperty.java index 4e719790f..fe6612ade 100644 --- a/fixture-monkey-api/src/main/java/com/navercorp/fixturemonkey/api/property/ConstructorProperty.java +++ b/fixture-monkey-api/src/main/java/com/navercorp/fixturemonkey/api/property/ConstructorProperty.java @@ -114,7 +114,7 @@ public boolean equals(Object obj) { return false; } ConstructorProperty that = (ConstructorProperty)obj; - return annotatedType.equals(that.annotatedType) + return annotatedType.getType().equals(that.annotatedType.getType()) && constructor.equals(that.constructor) && parameterName.equals(that.parameterName) && Objects.equals(fieldProperty, that.fieldProperty) @@ -123,7 +123,7 @@ public boolean equals(Object obj) { @Override public int hashCode() { - return Objects.hash(annotatedType, constructor, parameterName, fieldProperty, annotations); + return Objects.hash(annotatedType.getType(), constructor, parameterName, fieldProperty, annotations); } @Nullable