mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable EqualsHashCode in checkstyle (#5157)
This commit is contained in:
committed by
GitHub
parent
319d5143cc
commit
5703be5953
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user