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

12 lines
222 B
Java

import org.jetbrains.annotations.NotNull;
class C {
void foo(Object o) {
newMethod().run();
}
@NotNull
private Runnable newMethod() {
return (Runnable)(() -> System.out.println());
}
}