From 9a50da2d092f86eef6e00e0f518039ad3ef53ec8 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 14 Feb 2012 17:11:15 +0100 Subject: ecj tests and eclipse tests are now effectively doing the same thing, except the ecj tests are written in a slightly more close-to-reality way, and do work for 'val'. eclipse test aspect removed. --- .../resource/after-eclipse/GetterLazyNative.java | 158 --------------------- 1 file changed, 158 deletions(-) delete mode 100644 test/transform/resource/after-eclipse/GetterLazyNative.java (limited to 'test/transform/resource/after-eclipse/GetterLazyNative.java') diff --git a/test/transform/resource/after-eclipse/GetterLazyNative.java b/test/transform/resource/after-eclipse/GetterLazyNative.java deleted file mode 100644 index 6c90a101..00000000 --- a/test/transform/resource/after-eclipse/GetterLazyNative.java +++ /dev/null @@ -1,158 +0,0 @@ -class GetterLazyNative { - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> booleanField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> byteField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> shortField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> intField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> longField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> floatField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> doubleField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> charField = new java.util.concurrent.atomic.AtomicReference>(); - private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference> intArrayField = new java.util.concurrent.atomic.AtomicReference>(); - public @java.lang.SuppressWarnings("all") boolean isBooleanField() { - java.util.concurrent.atomic.AtomicReference value = this.booleanField.get(); - if ((value == null)) - { - synchronized (this.booleanField) - { - value = this.booleanField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(true); - this.booleanField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") byte getByteField() { - java.util.concurrent.atomic.AtomicReference value = this.byteField.get(); - if ((value == null)) - { - synchronized (this.byteField) - { - value = this.byteField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(1); - this.byteField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") short getShortField() { - java.util.concurrent.atomic.AtomicReference value = this.shortField.get(); - if ((value == null)) - { - synchronized (this.shortField) - { - value = this.shortField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(1); - this.shortField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") int getIntField() { - java.util.concurrent.atomic.AtomicReference value = this.intField.get(); - if ((value == null)) - { - synchronized (this.intField) - { - value = this.intField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(1); - this.intField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") long getLongField() { - java.util.concurrent.atomic.AtomicReference value = this.longField.get(); - if ((value == null)) - { - synchronized (this.longField) - { - value = this.longField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(1); - this.longField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") float getFloatField() { - java.util.concurrent.atomic.AtomicReference value = this.floatField.get(); - if ((value == null)) - { - synchronized (this.floatField) - { - value = this.floatField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(1.0f); - this.floatField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") double getDoubleField() { - java.util.concurrent.atomic.AtomicReference value = this.doubleField.get(); - if ((value == null)) - { - synchronized (this.doubleField) - { - value = this.doubleField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(1.0); - this.doubleField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") char getCharField() { - java.util.concurrent.atomic.AtomicReference value = this.charField.get(); - if ((value == null)) - { - synchronized (this.charField) - { - value = this.charField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference('1'); - this.charField.set(value); - } - } - } - return value.get(); - } - public @java.lang.SuppressWarnings("all") int[] getIntArrayField() { - java.util.concurrent.atomic.AtomicReference value = this.intArrayField.get(); - if ((value == null)) - { - synchronized (this.intArrayField) - { - value = this.intArrayField.get(); - if ((value == null)) - { - value = new java.util.concurrent.atomic.AtomicReference(new int[]{1}); - this.intArrayField.set(value); - } - } - } - return value.get(); - } - GetterLazyNative() { - super(); - } -} \ No newline at end of file -- cgit