diff options
| author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-02-14 17:11:15 +0100 |
|---|---|---|
| committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-02-14 17:11:15 +0100 |
| commit | 9a50da2d092f86eef6e00e0f518039ad3ef53ec8 (patch) | |
| tree | a5bfc35f6685b745540670aca136423d6bf3516a /test/transform/resource | |
| parent | 06581537f24fe31ee096960be496bc503059a95e (diff) | |
| download | lombok-9a50da2d092f86eef6e00e0f518039ad3ef53ec8.tar.gz lombok-9a50da2d092f86eef6e00e0f518039ad3ef53ec8.tar.bz2 lombok-9a50da2d092f86eef6e00e0f518039ad3ef53ec8.zip | |
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.
Diffstat (limited to 'test/transform/resource')
79 files changed, 0 insertions, 2428 deletions
diff --git a/test/transform/resource/after-eclipse/ClassNamedAfterGetter.java b/test/transform/resource/after-eclipse/ClassNamedAfterGetter.java deleted file mode 100644 index fb9df0ea..00000000 --- a/test/transform/resource/after-eclipse/ClassNamedAfterGetter.java +++ /dev/null @@ -1,9 +0,0 @@ -class GetFoo { - private @lombok.Getter int foo; - public @java.lang.SuppressWarnings("all") int getFoo() { - return this.foo; - } - GetFoo() { - super(); - } -} diff --git a/test/transform/resource/after-eclipse/CleanupName.java b/test/transform/resource/after-eclipse/CleanupName.java deleted file mode 100644 index f3f725f2..00000000 --- a/test/transform/resource/after-eclipse/CleanupName.java +++ /dev/null @@ -1,33 +0,0 @@ -class CleanupName { - CleanupName() { - super(); - } - void test() { - @lombok.Cleanup("toString") Object o = "Hello World!"; - try - { - System.out.println(o); - } - finally - { - if ((java.util.Collections.singletonList(o).get(0) != null)) - { - o.toString(); - } - } - } - void test2() { - @lombok.Cleanup(value = "toString") Object o = "Hello World too!"; - try - { - System.out.println(o); - } - finally - { - if ((java.util.Collections.singletonList(o).get(0) != null)) - { - o.toString(); - } - } - } -}
\ No newline at end of file diff --git a/test/transform/resource/after-eclipse/CleanupPlain.java b/test/transform/resource/after-eclipse/CleanupPlain.java deleted file mode 100644 index a9b9eceb..00000000 --- a/test/transform/resource/after-eclipse/CleanupPlain.java +++ /dev/null @@ -1,35 +0,0 @@ -import lombok.Cleanup; -import java.io.*; -class CleanupPlain { - CleanupPlain() { - super(); - } - void test() throws Exception { - @lombok.Cleanup InputStream in = new FileInputStream("in"); - try - { - @Cleanup OutputStream out = new FileOutputStream("out"); - try - { - if (in.markSupported()) - { - out.flush(); - } - } - finally - { - if ((java.util.Collections.singletonList(out).get(0) != null)) - { - out.close(); - } - } - } - finally - { - if ((java.util.Collections.singletonList(in).get(0) != null)) - { - in.close(); - } - } - } -}
\ No newline at end of file diff --git a/test/transform/resource/after-eclipse/CommentsInterspersed.java b/test/transform/resource/after-eclipse/CommentsInterspersed.java deleted file mode 100644 index 60c69aed..00000000 --- a/test/transform/resource/after-eclipse/CommentsInterspersed.java +++ /dev/null @@ -1,12 +0,0 @@ -import lombok.Getter; -public class CommentsInterspersed { - private int x; - private @Getter String test = "foo"; - public @java.lang.SuppressWarnings("all") String getTest() { - return this.test; - } - public CommentsInterspersed() { - super(); - } - public native void gwtTest(); -} diff --git a/test/transform/resource/after-eclipse/Constructors.java b/test/transform/resource/after-eclipse/Constructors.java deleted file mode 100644 index e47ec8b5..00000000 --- a/test/transform/resource/after-eclipse/Constructors.java +++ /dev/null @@ -1,43 +0,0 @@ -@lombok.RequiredArgsConstructor class RequiredArgsConstructor1 { - final int x; - String name; - public @java.beans.ConstructorProperties({"x"}) @java.lang.SuppressWarnings("all") RequiredArgsConstructor1(final int x) { - super(); - this.x = x; - } -} -@lombok.RequiredArgsConstructor(access = lombok.AccessLevel.PROTECTED) class RequiredArgsConstructorAccess { - final int x; - String name; - protected @java.beans.ConstructorProperties({"x"}) @java.lang.SuppressWarnings("all") RequiredArgsConstructorAccess(final int x) { - super(); - this.x = x; - } -} -@lombok.RequiredArgsConstructor(staticName = "staticname") class RequiredArgsConstructorStaticName { - final int x; - String name; - private @java.lang.SuppressWarnings("all") RequiredArgsConstructorStaticName(final int x) { - super(); - this.x = x; - } - public static @java.lang.SuppressWarnings("all") RequiredArgsConstructorStaticName staticname(final int x) { - return new RequiredArgsConstructorStaticName(x); - } -} -@lombok.AllArgsConstructor class AllArgsConstructor1 { - final int x; - String name; - public @java.beans.ConstructorProperties({"x", "name"}) @java.lang.SuppressWarnings("all") AllArgsConstructor1(final int x, final String name) { - super(); - this.x = x; - this.name = name; - } -} -@lombok.NoArgsConstructor class NoArgsConstructor1 { - final int x; - String name; - public @java.lang.SuppressWarnings("all") NoArgsConstructor1() { - super(); - } -}
\ No newline at end of file diff --git a/test/transform/resource/after-eclipse/DataExtended.java b/test/transform/resource/after-eclipse/DataExtended.java deleted file mode 100644 index dfc64f2d..00000000 --- a/test/transform/resource/after-eclipse/DataExtended.java +++ /dev/null @@ -1,36 +0,0 @@ -@lombok.Data @lombok.ToString(doNotUseGetters = true) class DataExtended { - int x; - public @java.lang.SuppressWarnings("all") DataExtended() { - super(); - } - public @java.lang.SuppressWarnings("all") int getX() { - return this.x; - } - public @java.lang.SuppressWarnings("all") void setX(final int x) { - this.x = x; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) { - if ((o == this)) - return true; - if ((! (o instanceof DataExtended))) - return false; - final @java.lang.SuppressWarnings("all") DataExtended other = (DataExtended) o; - if ((! other.canEqual((java.lang.Object) this))) - return false; - if ((this.getX() != other.getX())) - return false; - return true; - } - public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { - return (other instanceof DataExtended); - } - public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { - final int PRIME = 31; - int result = 1; - result = ((result * PRIME) + this.getX()); - return result; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { - return (("DataExtended(x=" + this.x) + ")"); - } -} diff --git a/test/transform/resource/after-eclipse/DataIgnore.java b/test/transform/resource/after-eclipse/DataIgnore.java deleted file mode 100644 index 109bf1d6..00000000 --- a/test/transform/resource/after-eclipse/DataIgnore.java +++ /dev/null @@ -1,35 +0,0 @@ -@lombok.Data class DataIgnore { - final int x; - String $name; - public @java.beans.ConstructorProperties({"x"}) @java.lang.SuppressWarnings("all") DataIgnore(final int x) { - super(); - this.x = x; - } - public @java.lang.SuppressWarnings("all") int getX() { - return this.x; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) { - if ((o == this)) - return true; - if ((! (o instanceof DataIgnore))) - return false; - final @java.lang.SuppressWarnings("all") DataIgnore other = (DataIgnore) o; - if ((! other.canEqual((java.lang.Object) this))) - return false; - if ((this.getX() != other.getX())) - return false; - return true; - } - public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { - return (other instanceof DataIgnore); - } - public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { - final int PRIME = 31; - int result = 1; - result = ((result * PRIME) + this.getX()); - return result; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { - return (("DataIgnore(x=" + this.getX()) + ")"); - } -} diff --git a/test/transform/resource/after-eclipse/DataOnEnum.java b/test/transform/resource/after-eclipse/DataOnEnum.java deleted file mode 100644 index 8bab5925..00000000 --- a/test/transform/resource/after-eclipse/DataOnEnum.java +++ /dev/null @@ -1,16 +0,0 @@ -public @lombok.Getter @lombok.ToString @lombok.RequiredArgsConstructor enum DataOnEnum { - A("hello"), - private final String someField; - <clinit>() { - } - private @java.lang.SuppressWarnings("all") DataOnEnum(final String someField) { - super(); - this.someField = someField; - } - public @java.lang.SuppressWarnings("all") String getSomeField() { - return this.someField; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { - return (("DataOnEnum(someField=" + this.getSomeField()) + ")"); - } -}
\ No newline at end of file diff --git a/test/transform/resource/after-eclipse/DataOnLocalClass.java b/test/transform/resource/after-eclipse/DataOnLocalClass.java deleted file mode 100644 index 44ae0ddc..00000000 --- a/test/transform/resource/after-eclipse/DataOnLocalClass.java +++ /dev/null @@ -1,134 +0,0 @@ -import lombok.Data; -class DataOnLocalClass1 { - DataOnLocalClass1() { - super(); - } - public static void main(String[] args) { - @Data class Local { - final int x; - String name; - public @java.lang.SuppressWarnings("all") Local(final int x) { - super(); - this.x = x; - } - public @java.lang.SuppressWarnings("all") int getX() { - return this.x; - } - public @java.lang.SuppressWarnings("all") String getName() { - return this.name; - } - public @java.lang.SuppressWarnings("all") void setName(final String name) { - this.name = name; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) { - if ((o == this)) - return true; - if ((! (o instanceof Local))) - return false; - final @java.lang.SuppressWarnings("all") Local other = (Local) o; - if ((! other.canEqual((java.lang.Object) this))) - return false; - if ((this.getX() != other.getX())) - return false; - if (((this.getName() == null) ? (other.getName() != null) : (! this.getName().equals((java.lang.Object) other.getName())))) - return false; - return true; - } - public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { - return (other instanceof Local); - } - public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { - final int PRIME = 31; - int result = 1; - result = ((result * PRIME) + this.getX()); - result = ((result * PRIME) + ((this.getName() == null) ? 0 : this.getName().hashCode())); - return result; - } - public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { - return (((("Local(x=" + this.getX()) + ", name=") + this.getName()) + ")"); - } - } - } -} -class DataOnLocalClass2 { - { - @Data class Local { - @Data class InnerLocal { - @lombok.NonNull String name; - public @java.lang.SuppressWarnings("all") InnerLocal(final @lombok.NonNull String name) { - super(); - if ((name == null)) - throw new java.lang.NullPointerException("name"); - this.name = name; - } - public @lombok.NonNull @java.lang.SuppressWarnings("all") String getName() { |
