mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
testdata for IDEA-151214
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user