mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
disable lambda -> methref for qualified new expressions (IDEA-147054)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// "Replace lambda with method reference" "false"
|
||||
class OuterClass {
|
||||
class InnerClass {
|
||||
public InnerClass() {
|
||||
}
|
||||
}
|
||||
|
||||
public static void foo() {
|
||||
final OuterClass outerClassInstance = new OuterClass();
|
||||
|
||||
doSomethingWithRunnable(() -> outerClassInstance.new Inner<caret>Class());
|
||||
}
|
||||
|
||||
static void doSomethingWithRunnable(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Replace lambda with method reference" "false"
|
||||
class OuterClass {
|
||||
class InnerClass { }
|
||||
|
||||
public static void foo() {
|
||||
final OuterClass outerClassInstance = new OuterClass();
|
||||
|
||||
doSomethingWithRunnable(() -> outerClassInstance.new Inner<caret>Class());
|
||||
}
|
||||
|
||||
static void doSomethingWithRunnable(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user