Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public boolean equals(Object o) {
return false;
}
DefaultGeometry that = (DefaultGeometry) o;
return this.getOgcGeometry().equals((Object) that.getOgcGeometry());
return this.getOgcGeometry().Equals(that.getOgcGeometry());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm becoming increasingly convinced that the earlier change was indeed incorrect. Prior to that update we were doing the following for DefaultGeometry.equals():

return this.getOgcGeometry().equals(that.getOgcGeometry());

That leverages the equals(OGCGeometry) method in ESRI 1.2.1. ESRI 2.2.4 introduced an equals(Object) impl in the PR referenced elsewhere but the meaning is different from the old equals() impl. The old implementation has been moved to Equals(OGCGeometry) in 2.2.4... that's what we should have moved to originally (and what this PR does move us to).

}

@Override
Expand Down