mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 10:39:51 +07:00
11 lines
313 B
Java
11 lines
313 B
Java
import javax.annotation.concurrent.GuardedBy;
|
|
|
|
class CheapReadWriteLock {
|
|
@GuardedBy(<error descr="Incompatible types. Found: 'int', required: 'java.lang.String'">1</error>) private volatile int value;
|
|
|
|
public int getValue() { return value; }
|
|
|
|
public synchronized int increment() {
|
|
return value++;
|
|
}
|
|
} |