aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-eclipse/GetterLazy.java
blob: 669a9a81514a5fe7268d3a1ca05811d600fbc8fc (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
class GetterLazy {
  static class ValueType {
    ValueType() {
      super();
    }
  }
  private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<ValueType>> fieldName = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<ValueType>>();
  public @java.lang.SuppressWarnings("all") ValueType getFieldName() {
    java.util.concurrent.atomic.AtomicReference<ValueType> value = this.fieldName.get();
    if ((value == null))
        {
          synchronized (this.fieldName)
            {
              value = this.fieldName.get();
              if ((value == null))
                  {
                    value = new java.util.concurrent.atomic.AtomicReference<ValueType>(new ValueType());
                    this.fieldName.set(value);
                  }
            }
        }
    return value.get();
  }
  GetterLazy() {
    super();
  }
}