mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
12 lines
272 B
Java
12 lines
272 B
Java
// "Replace method call on lambda with lambda body" "true-preview"
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
Supplier<String> s = () -> {
|
|
System.out.println("hello");
|
|
return "foo";
|
|
};
|
|
}
|
|
} |