mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
17 lines
274 B
Java
17 lines
274 B
Java
package extractMethod;
|
|
|
|
class Zzz<R> {
|
|
|
|
protected void doAction(C c, boolean b) {
|
|
if (b) {
|
|
c.foo(<selection>() -> c.bar()</selection>);
|
|
}
|
|
else {
|
|
c.foo(() -> c.bar());
|
|
}
|
|
}
|
|
private class C {
|
|
void foo(Runnable r) {}
|
|
void bar() {}
|
|
}
|
|
} |