mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
Add tests for Locked annotations
This commit is contained in:
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";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user