aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/GetterLazy.java
blob: 2ea3cbf2b90f5e56a6f3e1a14d16f14ecfb9ad90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class GetterLazy {
	static class ValueType {
	}
	private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> fieldName = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
	@java.lang.SuppressWarnings("all")
	@javax.annotation.Generated("lombok")
	public ValueType getFieldName() {
		java.lang.Object value = this.fieldName.get();
		if (value == null) {
			synchronized (this.fieldName) {
				value = this.fieldName.get();
				if (value == null) {
					final ValueType actualValue = new ValueType();
					value = actualValue == null ? this.fieldName : actualValue;
					this.fieldName.set(value);
				}
			}
		}
		return (ValueType) (value == this.fieldName ? null : value);
	}
}