mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
20 lines
396 B
Java
20 lines
396 B
Java
// "Replace lambda with method reference" "true-preview"
|
|
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
|
class Test
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
CompletableFuture.completedFuture(new Foo()).thenCompose(foo -> foo.g<caret>et());
|
|
}
|
|
|
|
private static class Foo
|
|
{
|
|
public CompletableFuture<?> get()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|