aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/after/SynchronizedPlain.java
blob: fcbe03f2de498b2b1f9e9d8fbd9b438f6c62ffd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class SynchronizedPlain1 {
	void test() {
		synchronized ($lock) {
			System.out.println("one");
		}
	}
	void test2() {
		synchronized ($lock) {
			System.out.println("two");
		}
	}
	private final java.lang.Object $lock = new java.lang.Object[0];
}
class SynchronizedPlain2 {
	static void test() {
		synchronized ($LOCK) {
			System.out.println("three");
		}
	}
	static void test2() {
		synchronized ($LOCK) {
			System.out.println("four");
		}
	}
	private static final java.lang.Object $LOCK = new java.lang.Object[0];
}