Add tests for Locked annotations

This commit is contained in:
Pim van der Loos committed 2023-04-18 18:07:53 +02:00
1 parent 5e31bb253c
commit cb25fce7aa
25 files changed
+634

No files matched your search

@@ -0,0 +1,16 @@
class LockedOnStatic<Z> {
static class Inner {
private static final java.util.concurrent.locks.ReentrantLock LCK = new java.util.concurrent.locks.ReentrantLock();
@lombok.experimental.Locked("LCK")
public void foo() {
System.out.println();
}
}
class Inner2 {
private final java.util.concurrent.locks.ReentrantLock LCK = new java.util.concurrent.locks.ReentrantLock();
@lombok.experimental.Locked("LCK")
public void foo() {
System.out.println();
}
}
}