mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
anonym -> lambda: do not suggest when forward references are detected (IDEA-120699)
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class HelloLambda {
|
||||
private final Runnable r = () -> {
|
||||
System.out.println(x);
|
||||
};
|
||||
private static int x = 0;
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with lambda" "false"
|
||||
class HelloLambda {
|
||||
private final Runnable r = new Run<caret>nable() {
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println(x);
|
||||
}
|
||||
};
|
||||
private int x = 0;
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with lambda" "true"
|
||||
class HelloLambda {
|
||||
private final Runnable r = new Run<caret>nable() {
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println(x);
|
||||
}
|
||||
};
|
||||
private static int x = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user