mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-19 20:37:12 +07:00
14 lines
272 B
Java
14 lines
272 B
Java
// "Convert 'x' to field in anonymous class" "true"
|
|
class Test {
|
|
public void test() {
|
|
var ref = new Object() {
|
|
int x = 12;
|
|
int y = 23;
|
|
};
|
|
Runnable r = () -> {
|
|
ref.x++;
|
|
ref.y++;
|
|
};
|
|
}
|
|
}
|