blob: f90a85e2151283748456b2f9ccce267d6fa08e04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import lombok.Synchronized;
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";
}
}
|