Skip to content

Commit babdd17

Browse files
committed
avoid raw usage of paramed class
1 parent e45661a commit babdd17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/bwapi/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public String toString() {
5555
public boolean equals(Object o) {
5656
if (this == o) return true;
5757
if (o == null || getClass() != o.getClass()) return false;
58-
Pair pair = (Pair) o;
58+
Pair<?, ?> pair = (Pair<?, ?>) o;
5959
return Objects.equals(first, pair.first) &&
6060
Objects.equals(second, pair.second);
6161
}

src/main/java/bwapi/Point.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public int getApproxDistance(final T point) {
6868
public boolean equals(Object o) {
6969
if (this == o) return true;
7070
if (o == null || getClass() != o.getClass()) return false;
71-
Point point = (Point) o;
71+
Point<?> point = (Point<?>) o;
7272
return x == point.x &&
7373
y == point.y;
7474
}

0 commit comments

Comments
 (0)