disable lambda -> method ref for qualified new expressions (IDEA-183613)

there is no place where qualifier can be added for constructor reference
This commit is contained in:
Anna.Kozlova
2017-12-13 14:06:22 +01:00
parent 1d6641db80
commit 4d4eefc1ab
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
// "Replace lambda with method reference" "false"
import java.util.function.*;
class Outer {
private static Outer outer = new Outer();
private static void test() {
Function<String, InstanceClass> supplier = s -> outer.n<caret>ew Inner(s);
}
class Inner {
Inner(String s) { }
}
}