blob: b4dc3770cb2d4afbee9cdaad6579cb7e39b890d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import lombok.Synchronized;
public record SynchronizedInRecord(java $lock, String a) {
private final java.lang.Object $lock = new java.lang.Object[0];
/* Implicit */ private final String a;
/* Implicit */ private final String b;
public SynchronizedInRecord(String a, String b) {
super();
.a = a;
.b = b;
}
public @Synchronized void foo() {
String foo = "bar";
}
}
|