Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/makeVarEffectivelyFinal/beforeNestedIf.java
2022-09-09 15:06:38 +00:00

16 lines
302 B
Java

// "Make variable effectively final" "true-preview"
class X {
void test(boolean a, boolean b, boolean c) {
int x = 0;
if (a) {
if (b) {
x = 1;
} else {
x = 2;
}
} else if (c) {
x = 3;
}
Runnable r = () -> System.out.println(<caret>x);
}
}