mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
anonymous -> lambda: allow field shadowing when suggesting new local names (IDEA-157288)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
Integer s;
|
||||
private void m() {
|
||||
Runnable r = () -> {
|
||||
System.out.println(s);
|
||||
Integer s = Test.this.s;
|
||||
};
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
Integer s;
|
||||
private void m() {
|
||||
Runnable r = new Runna<caret>ble() {
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println(s);
|
||||
Integer s = Test.this.s;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user