blob: f903172c6d13a0372086c7cbcbe09a629913c491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import lombok.Synchronized;
class SynchronizedPlain1 {
@lombok.Synchonized void test() {
System.out.println("one");
}
@Synchonized void test2() {
System.out.println("two");
}
}
class SynchronizedPlain2 {
@lombok.Synchonized static void test() {
System.out.println("three");
}
@Synchonized static void test2() {
System.out.println("four");
}
}
|