mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
20 lines
381 B
Java
20 lines
381 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::get);
|
|
}
|
|
|
|
private static class Foo
|
|
{
|
|
public CompletableFuture<?> get()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|