class GetterLazy { static class ValueType { } private final java.util.concurrent.atomic.AtomicReference> fieldName = new java.util.concurrent.atomic.AtomicReference>(); @java.lang.SuppressWarnings("all") public ValueType getFieldName() { java.util.concurrent.atomic.AtomicReference value = this.fieldName.get(); if (value == null) { synchronized (this.fieldName) { value = this.fieldName.get(); if (value == null) { final ValueType actualValue = new ValueType(); value = new java.util.concurrent.atomic.AtomicReference(actualValue); this.fieldName.set(value); } } } return value.get(); } }