mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
24 lines
462 B
Java
24 lines
462 B
Java
class Test {
|
|
void foo() {
|
|
class Integer {
|
|
int i;
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
final Integer integer = (Integer) o;
|
|
|
|
if (i != integer.i) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return i;
|
|
}
|
|
}
|
|
}
|
|
} |