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