mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 11:40:50 +07:00
20 lines
255 B
Java
20 lines
255 B
Java
class Base {
|
|
void foo() {}
|
|
void bar() { foo(); }
|
|
}
|
|
|
|
class Test extends Base {
|
|
private String string;
|
|
|
|
void foo() {
|
|
string = "";
|
|
}
|
|
|
|
protected void bar() {
|
|
string = null;
|
|
super.bar();
|
|
|
|
if (string != null)
|
|
super.bar();
|
|
}
|
|
} |