X Tutup
Skip to content

Commit 917078c

Browse files
committed
Fixed warning
1 parent c532ddd commit 917078c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/java/itrx/chapter3/sideeffects/SideEffectTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public Indexed(int index, T item) {
2929

3030
@Override
3131
public boolean equals(Object obj) {
32-
if (obj instanceof Indexed) {
33-
Indexed<T> other = (Indexed<T>) obj;
32+
if (obj instanceof Indexed<?>) {
33+
Indexed<?> other = (Indexed<?>) obj;
3434
return this.index == other.index &&
3535
this.item.equals(other.item);
3636
}

0 commit comments

Comments
 (0)
X Tutup