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