Skip to content

Commit

Permalink
Fix ConstructorProperty equals and hashCode using Type instead of Ann…
Browse files Browse the repository at this point in the history
…otatedType (#943)
  • Loading branch information
seongahjo authored Mar 6, 2024
1 parent 294c293 commit 57f75fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 57f75fe

Please sign in to comment.