testdata for IDEA-151214

This commit is contained in:
Anna.Kozlova
2016-03-18 15:40:31 +01:00
parent 395c55df75
commit ae59643c87
2 changed files with 38 additions and 0 deletions

View File

@@ -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;
}
}
}

View File

@@ -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;
}
}
}