aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/GetterLazyNative.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-07-22 23:23:46 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-07-22 23:23:46 +0200
commit45697b50816df79475a8bb69dc89ff68747fbfe6 (patch)
tree25cb023eec1f74baf5063cc5a58a5351ee43d6f0 /test/transform/resource/after-delombok/GetterLazyNative.java
parent4c03e3d220900431085897878d4888bf530b31ec (diff)
parentdeed98be16e5099af52d951fc611f86a82a42858 (diff)
downloadlombok-45697b50816df79475a8bb69dc89ff68747fbfe6.tar.gz
lombok-45697b50816df79475a8bb69dc89ff68747fbfe6.tar.bz2
lombok-45697b50816df79475a8bb69dc89ff68747fbfe6.zip
Merge branch 'master' into jdk8. Also added some major fixes whilst merging.
Conflicts: src/core/lombok/javac/handlers/JavacHandlerUtil.java src/utils/lombok/javac/CommentCatcher.java src/utils/lombok/javac/Javac.java
Diffstat (limited to 'test/transform/resource/after-delombok/GetterLazyNative.java')
-rw-r--r--test/transform/resource/after-delombok/GetterLazyNative.java74
1 files changed, 37 insertions, 37 deletions
diff --git a/test/transform/resource/after-delombok/GetterLazyNative.java b/test/transform/resource/after-delombok/GetterLazyNative.java
index a10075ba..eb31991a 100644
--- a/test/transform/resource/after-delombok/GetterLazyNative.java
+++ b/test/transform/resource/after-delombok/GetterLazyNative.java
@@ -1,146 +1,146 @@
class GetterLazyNative {
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>> booleanField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>> byteField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Byte>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Short>> shortField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Short>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Integer>> intField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Integer>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Long>> longField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Long>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Float>> floatField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Float>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Double>> doubleField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Double>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Character>> charField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Character>>();
- private final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<int[]>> intArrayField = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<int[]>>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> booleanField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> byteField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> shortField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> intField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> longField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> floatField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> doubleField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> charField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> intArrayField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
@java.lang.SuppressWarnings("all")
public boolean isBooleanField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> value = this.booleanField.get();
+ java.lang.Object value = this.booleanField.get();
if (value == null) {
synchronized (this.booleanField) {
value = this.booleanField.get();
if (value == null) {
final boolean actualValue = true;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>(actualValue);
+ value = actualValue;
this.booleanField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Boolean)value;
}
@java.lang.SuppressWarnings("all")
public byte getByteField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Byte> value = this.byteField.get();
+ java.lang.Object value = this.byteField.get();
if (value == null) {
synchronized (this.byteField) {
value = this.byteField.get();
if (value == null) {
final byte actualValue = 1;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Byte>(actualValue);
+ value = actualValue;
this.byteField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Byte)value;
}
@java.lang.SuppressWarnings("all")
public short getShortField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Short> value = this.shortField.get();
+ java.lang.Object value = this.shortField.get();
if (value == null) {
synchronized (this.shortField) {
value = this.shortField.get();
if (value == null) {
final short actualValue = 1;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Short>(actualValue);
+ value = actualValue;
this.shortField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Short)value;
}
@java.lang.SuppressWarnings("all")
public int getIntField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Integer> value = this.intField.get();
+ java.lang.Object value = this.intField.get();
if (value == null) {
synchronized (this.intField) {
value = this.intField.get();
if (value == null) {
final int actualValue = 1;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Integer>(actualValue);
+ value = actualValue;
this.intField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Integer)value;
}
@java.lang.SuppressWarnings("all")
public long getLongField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Long> value = this.longField.get();
+ java.lang.Object value = this.longField.get();
if (value == null) {
synchronized (this.longField) {
value = this.longField.get();
if (value == null) {
final long actualValue = 1;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Long>(actualValue);
+ value = actualValue;
this.longField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Long)value;
}
@java.lang.SuppressWarnings("all")
public float getFloatField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Float> value = this.floatField.get();
+ java.lang.Object value = this.floatField.get();
if (value == null) {
synchronized (this.floatField) {
value = this.floatField.get();
if (value == null) {
final float actualValue = 1.0F;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Float>(actualValue);
+ value = actualValue;
this.floatField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Float)value;
}
@java.lang.SuppressWarnings("all")
public double getDoubleField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Double> value = this.doubleField.get();
+ java.lang.Object value = this.doubleField.get();
if (value == null) {
synchronized (this.doubleField) {
value = this.doubleField.get();
if (value == null) {
final double actualValue = 1.0;
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Double>(actualValue);
+ value = actualValue;
this.doubleField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Double)value;
}
@java.lang.SuppressWarnings("all")
public char getCharField() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Character> value = this.charField.get();
+ java.lang.Object value = this.charField.get();
if (value == null) {
synchronized (this.charField) {
value = this.charField.get();
if (value == null) {
final char actualValue = '1';
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Character>(actualValue);
+ value = actualValue;
this.charField.set(value);
}
}
}
- return value.get();
+ return (java.lang.Character)value;
}
@java.lang.SuppressWarnings("all")
public int[] getIntArrayField() {
- java.util.concurrent.atomic.AtomicReference<int[]> value = this.intArrayField.get();
+ java.lang.Object value = this.intArrayField.get();
if (value == null) {
synchronized (this.intArrayField) {
value = this.intArrayField.get();
if (value == null) {
final int[] actualValue = new int[]{1};
- value = new java.util.concurrent.atomic.AtomicReference<int[]>(actualValue);
+ value = actualValue == null ? this.intArrayField : actualValue;
this.intArrayField.set(value);
}
}
}
- return value.get();
+ return (int[])(value == this.intArrayField ? null : value);
}
-} \ No newline at end of file
+}