mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
17 lines
396 B
Java
17 lines
396 B
Java
abstract class SuperTest {
|
|
public boolean equals(Object object) {
|
|
return true;
|
|
}
|
|
public int hashCode() {
|
|
return 0;
|
|
}
|
|
}
|
|
class Test extends SuperTest {
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
if (!super.equals(o)) return false;
|
|
|
|
return true;
|
|
}
|
|
} |