mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-26 10:29:11 +07:00
d9193529e2
GitOrigin-RevId: e6f1c6e2d80af6332bae642391ca4b6113aa12ed
10 lines
231 B
Java
10 lines
231 B
Java
// "Make 'x' effectively final by moving initializer to the 'if' statement" "true-preview"
|
|
class X {
|
|
void test(boolean a) {
|
|
int x = 0;
|
|
if (a) {
|
|
x = 1;
|
|
}
|
|
Runnable r = () -> System.out.println(<caret>x);
|
|
}
|
|
} |