Skip to content

Commit 62b0b6d

Browse files
cirrasfourls
authored andcommitted
Make hashCode consistent with equals in NameOccurrenceImpl
`image` was only used in `hashCode`.
1 parent 3e72787 commit 62b0b6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎delphi-frontend/src/main/java/au/com/integradev/delphi/symbol/occurrence/NameOccurrenceImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public boolean equals(Object o) {
115115
return isExplicitInvocation == that.isExplicitInvocation
116116
&& isGeneric == that.isGeneric
117117
&& location.equals(that.location)
118+
&& Objects.equals(image, that.image)
118119
&& Objects.equals(declaration, that.declaration)
119120
&& typeParameters.equals(that.typeParameters);
120121
}

0 commit comments

Comments
 (0)