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 17:02:33 +01:00
parent e1b1639152
commit 8210171223
6 changed files with 40 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
// "Replace with lambda" "true"
class Test {
Runnable a = () -> {};
Runnable r = () -> a.run();
}

View File

@@ -0,0 +1,4 @@
// "Replace with lambda" "true"
class Test {
Runnable r = () -> "".toString();
}

View File

@@ -0,0 +1,9 @@
// "Replace with lambda" "true"
class Test {
Runnable a = () -> {};
Runnable r = new R<caret>unnable() {
public void run() {
a.run();
}
};
}

View File

@@ -0,0 +1,8 @@
// "Replace with lambda" "true"
class Test {
Runnable r = new R<caret>unnable() {
public void run() {
"".toString();
}
};
}