mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
show error if uninitialized field is referenced from lambda inside inner/anonymous class in another field initializer; disable anonymous -> lambda for such places
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// "Replace with lambda" "false"
|
||||
class Test {
|
||||
private final int myId;
|
||||
|
||||
private final Runnable myModels = new Runnable() {
|
||||
private Comparable<String> myMapping = new Compa<caret>rable<String>() {
|
||||
@Override
|
||||
public String apply(final String s) {
|
||||
return myId;
|
||||
}
|
||||
};
|
||||
|
||||
public void run() {}
|
||||
};
|
||||
|
||||
public Test(final int i) {
|
||||
myId = i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user