mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
10 lines
194 B
Java
10 lines
194 B
Java
import javax.annotation.concurrent.GuardedBy;
|
|
|
|
class GuardedByDemo {
|
|
@GuardedBy("GuardedByDemo.class")
|
|
static final long foo = 23;
|
|
|
|
synchronized static void bar() {
|
|
long a = foo;
|
|
}
|
|
} |