Skip to content

Commit

Permalink
refactor: simplify logic of Point::equals in KDTree (#5158)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaBlurd committed May 12, 2024
1 parent 5703be5 commit bbef89c
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -75,7 +75,6 @@ public int getDimension() {
@Override
public boolean equals(Object obj) {
if (obj instanceof Point other) {
if (other.getDimension() != this.getDimension()) return false;
return Arrays.equals(other.coordinates, this.coordinates);
}
return false;
Expand Down

0 comments on commit bbef89c

Please sign in to comment.