aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/resource/after/SynchronizedPlain.java
blob: 695a308916963cbeed8c5e03a2db13f778b1b84e (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
27
28
class SynchronizedPlain1 {
	void test() {
		synchronized (this.$lock) {
			System.out.println("one");
		}
	}
	void test2() {
		synchronized (this.$lock) {
			System.out.println("two");
		}
	}
	@java.lang.SuppressWarnings("all")
	private final java.lang.Object $lock = new java.lang.Object[0];
}
class SynchronizedPlain2 {
	static void test() {
		synchronized (SynchronizedPlain2.$LOCK) {
			System.out.println("three");
		}
	}
	static void test2() {
		synchronized (SynchronizedPlain2.$LOCK) {
			System.out.println("four");
		}
	}
	@java.lang.SuppressWarnings("all")
	private static final java.lang.Object $LOCK = new java.lang.Object[0];
}