mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
22 lines
347 B
Plaintext
22 lines
347 B
Plaintext
class Test {
|
|
void bar(int i) {
|
|
new InnerClass(i).invoke();
|
|
}
|
|
|
|
void foo() {
|
|
bar(5);
|
|
}
|
|
|
|
private class InnerClass {
|
|
private int i;
|
|
|
|
public InnerClass(int i) {
|
|
this.i = i;
|
|
}
|
|
|
|
public void invoke() {
|
|
if (i == 0) return;
|
|
bar(i - 1);
|
|
}
|
|
}
|
|
} |