mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-24 16:48:29 +07:00
7e1064ea3c
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
14 lines
375 B
Java
14 lines
375 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) {
|
|
while(((Predicate<String>) ((x) -> {
|
|
System.out.println("hello");
|
|
return Collections.singleton("abc").contains(x);
|
|
})).<caret>test("ab")) {
|
|
System.out.println("hello");
|
|
}
|
|
}
|
|
} |