aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SynchronizedOnStatic.java
blob: 20dd3514bd2fedbe125557b86ca9a37a4c5ccabf (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
class SynchronizedOnStatic<Z> {
  static class Inner {
    private static Object LCK = new Object[0];
    <clinit>() {
    }
    Inner() {
      super();
    }
    public @lombok.Synchronized("LCK") void foo() {
      synchronized (SynchronizedOnStatic.Inner.LCK)
        {
          System.out.println();
        }
    }
  }
  class Inner2 {
    private Object LCK = new Object[0];
    Inner2() {
      super();
    }
    public @lombok.Synchronized("LCK") void foo() {
      synchronized (this.LCK)
        {
          System.out.println();
        }
    }
  }
  SynchronizedOnStatic() {
    super();
  }
}