mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
16 lines
241 B
Java
16 lines
241 B
Java
class C {
|
|
Object foo(boolean b) {
|
|
if (b) {
|
|
<selection>return A.getInstance();</selection>
|
|
} else {
|
|
return B.getInstance();
|
|
}
|
|
}
|
|
}
|
|
class A {
|
|
static A getInstance() {
|
|
return new A();
|
|
}
|
|
}
|
|
class B extends A {
|
|
} |