mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 06:51:01 +07:00
18 lines
518 B
Java
18 lines
518 B
Java
// "Replace method call on lambda with lambda body" "true-preview"
|
|
|
|
import java.util.function.Function;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
String s = ((Function<String, String>) ((x) -> {
|
|
/* comment1 */
|
|
|
|
System.out.println(/* output x */x);
|
|
|
|
// comment2
|
|
System.out.println("hello");
|
|
return /*in return */ "foo" + //inline
|
|
"bar";
|
|
})).<caret>apply("a"+/* who-hoo */ "x");
|
|
}
|
|
} |