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,14 @@
import lombok.experimental.Locked;
public record LockedInRecord(java lock, String a) {
private final java.util.concurrent.locks.ReentrantLock lock = new java.util.concurrent.locks.ReentrantLock();
/* Implicit */ private final String a;
/* Implicit */ private final String b;
public LockedInRecord(String a, String b) {
super();
.a = a;
.b = b;
}
public @Locked void foo() {
String foo = "bar";
}
}