[review] [#3506] PR reviewed; passes review and passes tests.

This commit is contained in:
Reinier Zwitserloot committed 2023-09-25 06:19:36 +02:00
1 parent 567b098e99
commit 566f01be47
38 files changed
+406 -371

No files matched your search

@@ -1,33 +1,33 @@
class LockedGeneratedStaticMismatch {
private static final java.util.concurrent.locks.ReentrantLock LOCK = new java.util.concurrent.locks.ReentrantLock();
private static final java.util.concurrent.locks.Lock $LOCK = new java.util.concurrent.locks.ReentrantLock();
<clinit>() {
}
LockedGeneratedStaticMismatch() {
super();
}
static @lombok.experimental.Locked void test() {
LockedGeneratedStaticMismatch.LOCK.lock();
static @lombok.Locked void test() {
LockedGeneratedStaticMismatch.$LOCK.lock();
try
{
System.out.println("one");
}
finally
{
LockedGeneratedStaticMismatch.LOCK.unlock();
LockedGeneratedStaticMismatch.$LOCK.unlock();
}
}
@lombok.experimental.Locked("LOCK") void test2() {
@lombok.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();
private static final java.util.concurrent.locks.Lock userLock = new java.util.concurrent.locks.ReentrantLock();
<clinit>() {
}
LockedUserStaticMismatch() {
super();
}
static @lombok.experimental.Locked("userLock") void test() {
static @lombok.Locked("userLock") void test() {
LockedUserStaticMismatch.userLock.lock();
try
{
@@ -38,7 +38,7 @@ class LockedUserStaticMismatch {
LockedUserStaticMismatch.userLock.unlock();
}
}
@lombok.experimental.Locked("userLock") void test2() {
@lombok.Locked("userLock") void test2() {
LockedUserStaticMismatch.userLock.lock();
try
{