mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 20:15:55 +00:00
Add tests for Locked annotations
This commit is contained in:
25 files changed
+634
No files matched your search
@@ -0,0 +1,17 @@
|
||||
class LockedGeneratedStaticMismatch {
|
||||
@lombok.experimental.Locked static void test() {
|
||||
System.out.println("one");
|
||||
}
|
||||
@lombok.experimental.Locked("LOCK") void test2() {
|
||||
System.out.println("two");
|
||||
}
|
||||
}
|
||||
class LockedUserStaticMismatch {
|
||||
private static final java.util.concurrent.locks.ReentrantLock userLock = new java.util.concurrent.locks.ReentrantLock();
|
||||
@lombok.experimental.Locked("userLock") static void test() {
|
||||
System.out.println("one");
|
||||
}
|
||||
@lombok.experimental.Locked("userLock") void test2() {
|
||||
System.out.println("two");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user