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