We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c532ddd commit 917078cCopy full SHA for 917078c
1 file changed
tests/java/itrx/chapter3/sideeffects/SideEffectTest.java
@@ -29,8 +29,8 @@ public Indexed(int index, T item) {
29
30
@Override
31
public boolean equals(Object obj) {
32
- if (obj instanceof Indexed) {
33
- Indexed<T> other = (Indexed<T>) obj;
+ if (obj instanceof Indexed<?>) {
+ Indexed<?> other = (Indexed<?>) obj;
34
return this.index == other.index &&
35
this.item.equals(other.item);
36
}
0 commit comments