Files
openide/java/java-tests/testData/refactoring/extractMethod/NoNPE1.java
2019-03-14 17:59:35 +01:00

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() {}
}
}