mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
anonym -> lambda: ignore calls to object and qualified calls when check to interface methods is performed (IDEA-134039)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
Runnable a = () -> {};
|
||||
Runnable r = () -> a.run();
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
Runnable r = () -> "".toString();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
Runnable a = () -> {};
|
||||
Runnable r = new R<caret>unnable() {
|
||||
public void run() {
|
||||
a.run();
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
Runnable r = new R<caret>unnable() {
|
||||
public void run() {
|
||||
"".toString();
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user