Skip to content

Fix DD equals and compareTo#1186

Merged
dr-jts merged 1 commit intolocationtech:masterfrom
dr-jts:fix-dd-equals
Mar 6, 2026
Merged

Fix DD equals and compareTo#1186
dr-jts merged 1 commit intolocationtech:masterfrom
dr-jts:fix-dd-equals

Conversation

@dr-jts
Copy link
Copy Markdown
Contributor

@dr-jts dr-jts commented Mar 6, 2026

Changes DD.equals to override Object.equals(Object). Also adds a type to Comparable and changes compareTo to match.

Fixes #1185

@dr-jts dr-jts added the type-bug label Mar 6, 2026
@dr-jts dr-jts merged commit c70bf9e into locationtech:master Mar 6, 2026
2 checks passed
@dr-jts dr-jts deleted the fix-dd-equals branch March 6, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DD.equals(DD) does not override Object.equals(Object) — also violates clone and compareTo contracts

1 participant