We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e45661a commit babdd17Copy full SHA for babdd17
src/main/java/bwapi/Pair.java
@@ -55,7 +55,7 @@ public String toString() {
55
public boolean equals(Object o) {
56
if (this == o) return true;
57
if (o == null || getClass() != o.getClass()) return false;
58
- Pair pair = (Pair) o;
+ Pair<?, ?> pair = (Pair<?, ?>) o;
59
return Objects.equals(first, pair.first) &&
60
Objects.equals(second, pair.second);
61
}
src/main/java/bwapi/Point.java
@@ -68,7 +68,7 @@ public int getApproxDistance(final T point) {
68
69
70
71
- Point point = (Point) o;
+ Point<?> point = (Point<?>) o;
72
return x == point.x &&
73
y == point.y;
74
0 commit comments