style: enable EqualsHashCode in checkstyle (#5157)

This commit is contained in:
Godwill Christopher
2024-05-12 03:38:07 -06:00
committed by GitHub
parent 319d5143cc
commit 5703be5953
2 changed files with 6 additions and 1 deletions

View File

@ -81,6 +81,11 @@ public class KDTree {
return false;
}
@Override
public int hashCode() {
return Arrays.hashCode(coordinates);
}
@Override
public String toString() {
return Arrays.toString(coordinates);