Files
openide/java/java-tests/testData/refactoring/extractMethodNew/NotNullArgumentLambdaInIfNoBlock.java
Alexandr Suhinin 9c7991944f extract method test: separate formatting tests
GitOrigin-RevId: 26fd0636cfc3cba75f1c09cc6ff0ceaab43d40ae
2020-03-31 12:32:01 +00:00

12 lines
272 B
Java

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class C {
void foo(@Nullable Object o) {
if (o != null)
<selection>((Runnable) (() -> bar(o)))</selection>.run();
}
void bar(@NotNull Object o) {
}
}