aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/GetterLazyBoolean.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-07-07 21:41:47 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-07-07 21:49:47 +0200
commit85fec0dffa5df13c0cafc86ca762774ba2c4d951 (patch)
treec44f9ae2ee9feb22033ee0a37d1de06648172580 /test/transform/resource/after-ecj/GetterLazyBoolean.java
parentb6a23a7d94ee4f01b38a0e6d7db120fb05be0d6c (diff)
downloadlombok-85fec0dffa5df13c0cafc86ca762774ba2c4d951.tar.gz
lombok-85fec0dffa5df13c0cafc86ca762774ba2c4d951.tar.bz2
lombok-85fec0dffa5df13c0cafc86ca762774ba2c4d951.zip
eclipse support for the new @Getter(lazy=true) desugaring.
Diffstat (limited to 'test/transform/resource/after-ecj/GetterLazyBoolean.java')
-rw-r--r--test/transform/resource/after-ecj/GetterLazyBoolean.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/transform/resource/after-ecj/GetterLazyBoolean.java b/test/transform/resource/after-ecj/GetterLazyBoolean.java
index 8c890827..a51b164f 100644
--- a/test/transform/resource/after-ecj/GetterLazyBoolean.java
+++ b/test/transform/resource/after-ecj/GetterLazyBoolean.java
@@ -1,6 +1,6 @@
@lombok.EqualsAndHashCode(of = "booleanValue") @lombok.ToString(of = "booleanValue") class GetterLazyBoolean {
- private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>> booleanValue = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>>();
- private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>> otherBooleanValue = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>>();
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> booleanValue = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> otherBooleanValue = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
GetterLazyBoolean() {
super();
}
@@ -8,7 +8,7 @@
return true;
}
public @java.lang.SuppressWarnings("all") boolean isBooleanValue() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> value = this.booleanValue.get();
+ java.lang.Object value = this.booleanValue.get();
if ((value == null))
{
synchronized (this.booleanValue)
@@ -17,15 +17,15 @@
if ((value == null))
{
final boolean actualValue = calculateBoolean();
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>(actualValue);
+ value = actualValue;
this.booleanValue.set(value);
}
}
}
- return value.get();
+ return (java.lang.Boolean) value;
}
public @java.lang.SuppressWarnings("all") boolean isOtherBooleanValue() {
- java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> value = this.otherBooleanValue.get();
+ java.lang.Object value = this.otherBooleanValue.get();
if ((value == null))
{
synchronized (this.otherBooleanValue)
@@ -34,12 +34,12 @@
if ((value == null))
{
final boolean actualValue = (! calculateBoolean());
- value = new java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>(actualValue);
+ value = actualValue;
this.otherBooleanValue.set(value);
}
}
}
- return value.get();
+ return (java.lang.Boolean) value;
}
public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
if ((o == this))