mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
20 lines
384 B
Java
20 lines
384 B
Java
class Test {
|
|
void foo() {
|
|
class Integer {
|
|
int i;
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Integer integer = (Integer) o;
|
|
return i == integer.i;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return i;
|
|
}
|
|
}
|
|
}
|
|
} |