aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SynchronizedInAnonymousClass.java
blob: 77013f2fbde82daaa5dfadcbb2c44cc193b3d78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import lombok.Synchronized;
public class SynchronizedInAnonymousClass {
  Object annonymous = new Object() {
    class Inner {
      private final java.lang.Object $lock = new java.lang.Object[0];
      Inner() {
        super();
      }
      public @Synchronized void foo() {
        synchronized (this.$lock)
          {
            String foo = "bar";
          }
      }
    }
    x() {
      super();
    }
  };
  public SynchronizedInAnonymousClass() {
    super();
  }
}