mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-07 12:17:37 +00:00
Add tests for Locked annotations
This commit is contained in:
@@ -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