aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SynchronizedName.java
blob: a7edd3e760ad17f7805b339d12ba665827575629 (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
29
30
31
32
33
34
35
36
class SynchronizedName {
  private Object read = new Object();
  private static Object READ = new Object();
  <clinit>() {
  }
  SynchronizedName() {
    super();
  }
  @lombok.Synchronized("read") void test1() {
    synchronized (this.read)
      {
        System.out.println("one");
      }
  }
  @lombok.Synchronized("write") void test2() {
    System.out.println("two");
  }
  static @lombok.Synchronized("read") void test3() {
    synchronized (SynchronizedName.read)
      {
        System.out.println("three");
      }
  }
  @lombok.Synchronized("READ") void test4() {
    synchronized (this.READ)
      {
        System.out.println("four");
      }
  }
  @lombok.Synchronized(value = "read") void test5() {
    synchronized (this.read)
      {
        System.out.println("five");
      }
  }
}