mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
VariableAccessFromInnerClassJava10: fix review issues: IDEA-CR-31797
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Move 'x' into anonymous object" "false"
|
||||
class Test {
|
||||
void test() {
|
||||
int x = 1, y = 2;
|
||||
Runnable r = () -> <caret>x++;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
// "Move 'x' into anonymous object" "false"
|
||||
class Test {
|
||||
public void test() {
|
||||
var x = new Object() {
|
||||
int y = 12;
|
||||
}
|
||||
void test() {
|
||||
Integer i = 1;
|
||||
var x = (Number & Comparable<?>)i;
|
||||
Runnable r = () -> {
|
||||
x<caret> = null;
|
||||
x<caret> = 2;
|
||||
};
|
||||
System.out.println(x.compareTo(null));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user