mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
14 lines
225 B
Java
14 lines
225 B
Java
class Test {
|
|
private final int a;
|
|
|
|
public Test() {
|
|
a = 1;
|
|
run(() -> {
|
|
<error descr="Cannot assign a value to final variable 'a'">a</error> = 2;
|
|
});
|
|
}
|
|
|
|
public void run(Runnable r) {
|
|
r.run();
|
|
}
|
|
} |