blob: dbebad90f88981bc0be609c1e2365f17cd470de6 (
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
|
class GetterLazyTransient {
private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> nonTransientField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
private final transient int transientField = 2;
private final transient int nonLazyTransientField = 3;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int getNonTransientField() {
java.lang.Object value = this.nonTransientField.get();
if (value == null) {
synchronized (this.nonTransientField) {
value = this.nonTransientField.get();
if (value == null) {
final int actualValue = 1;
value = actualValue;
this.nonTransientField.set(value);
}
}
}
return (java.lang.Integer) value;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int getNonLazyTransientField() {
return this.nonLazyTransientField;
}
}
|