anonym -> lambda: ignore calls to object and qualified calls when check to interface methods is performed (IDEA-134039)

This commit is contained in:
Anna Kozlova
2014-12-08 18:59:51 +01:00
parent e1b1639152
commit 8210171223
6 changed files with 40 additions and 3 deletions
@@ -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();
}
};
}