aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/resource/after/SynchronizedName.java
blob: a3e647961681060531efcb6f89f8d731e4311529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class SynchronizedName {
	private Object read = new Object();
	private static Object READ = new Object();
	void test1() {
		synchronized (read) {
			System.out.println("one");
		}
	}
	void test2() {
		System.out.println("two");
	}
	static void test3() {
		System.out.println("three");
	}
	void test4() {
		synchronized (READ) {
			System.out.println("four");
		}
	}
}