diff options
Diffstat (limited to 'test/delombok')
56 files changed, 0 insertions, 1476 deletions
diff --git a/test/delombok/resource/after/ClassNamedAfterGetter.java b/test/delombok/resource/after/ClassNamedAfterGetter.java deleted file mode 100644 index 769aaf7c..00000000 --- a/test/delombok/resource/after/ClassNamedAfterGetter.java +++ /dev/null @@ -1,7 +0,0 @@ -class GetFoo { - private int foo; - @java.lang.SuppressWarnings("all") - public int getFoo() { - return this.foo; - } -} diff --git a/test/delombok/resource/after/CleanupName.java b/test/delombok/resource/after/CleanupName.java deleted file mode 100644 index cd29eb68..00000000 --- a/test/delombok/resource/after/CleanupName.java +++ /dev/null @@ -1,18 +0,0 @@ -class CleanupName { - void test() { - Object o = "Hello World!"; - try { - System.out.println(o); - } finally { - o.toString(); - } - } - void test2() { - Object o = "Hello World too!"; - try { - System.out.println(o); - } finally { - o.toString(); - } - } -} diff --git a/test/delombok/resource/after/CleanupPlain.java b/test/delombok/resource/after/CleanupPlain.java deleted file mode 100644 index 35d51543..00000000 --- a/test/delombok/resource/after/CleanupPlain.java +++ /dev/null @@ -1,18 +0,0 @@ -import java.io.*; -class CleanupPlain { - void test() throws Exception { - InputStream in = new FileInputStream("in"); - try { - OutputStream out = new FileOutputStream("out"); - try { - if (in.markSupported()) { - out.flush(); - } - } finally { - out.close(); - } - } finally { - in.close(); - } - } -} diff --git a/test/delombok/resource/after/CommentsInterspersed.java b/test/delombok/resource/after/CommentsInterspersed.java deleted file mode 100644 index 5aaafe42..00000000 --- a/test/delombok/resource/after/CommentsInterspersed.java +++ /dev/null @@ -1,16 +0,0 @@ -/* cmt *//* cmt2 */ /* cmt3 */ /*bla */ -public class CommentsInterspersed { - /** javadoc for field */ - private int x; - /* bla2 */ private String test = "foo"; //$NON-NLS-1$ - /** Javadoc on method */ - public native void gwtTest(); /*-{ - javascript; - }-*/ - @java.lang.SuppressWarnings("all") - public String getTest() { - return this.test; - } -} //haha! -//hahaha! -//hahahaha! diff --git a/test/delombok/resource/after/DataIgnore.java b/test/delombok/resource/after/DataIgnore.java deleted file mode 100644 index feb2c0ef..00000000 --- a/test/delombok/resource/after/DataIgnore.java +++ /dev/null @@ -1,36 +0,0 @@ -class DataIgnore { - final int x; - String $name; - @java.beans.ConstructorProperties({"x"}) - @java.lang.SuppressWarnings("all") - public DataIgnore(final int x) { - this.x = x; - } - @java.lang.SuppressWarnings("all") - public int getX() { - return this.x; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public boolean equals(final java.lang.Object o) { - if (o == this) return true; - if (o == null) return false; - if (o.getClass() != this.getClass()) return false; - final DataIgnore other = (DataIgnore)o; - if (this.x != other.x) return false; - return true; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public int hashCode() { - final int PRIME = 31; - int result = 1; - result = result * PRIME + this.x; - return result; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public java.lang.String toString() { - return "DataIgnore(x=" + this.x + ")"; - } -} diff --git a/test/delombok/resource/after/DataPlain.java b/test/delombok/resource/after/DataPlain.java deleted file mode 100644 index 2938a46e..00000000 --- a/test/delombok/resource/after/DataPlain.java +++ /dev/null @@ -1,92 +0,0 @@ -class Data1 { - final int x; - String name; - @java.beans.ConstructorProperties({"x"}) - @java.lang.SuppressWarnings("all") - public Data1(final int x) { - this.x = x; - } - @java.lang.SuppressWarnings("all") - public int getX() { - return this.x; - } - @java.lang.SuppressWarnings("all") - public String getName() { - return this.name; - } - @java.lang.SuppressWarnings("all") - public void setName(final String name) { - this.name = name; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public boolean equals(final java.lang.Object o) { - if (o == this) return true; - if (o == null) return false; - if (o.getClass() != this.getClass()) return false; - final Data1 other = (Data1)o; - if (this.x != other.x) return false; - if (this.name == null ? other.name != null : !this.name.equals(other.name)) return false; - return true; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public int hashCode() { - final int PRIME = 31; - int result = 1; - result = result * PRIME + this.x; - result = result * PRIME + (this.name == null ? 0 : this.name.hashCode()); - return result; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public java.lang.String toString() { - return "Data1(x=" + this.x + ", name=" + this.name + ")"; - } -} -class Data2 { - final int x; - String name; - @java.beans.ConstructorProperties({"x"}) - @java.lang.SuppressWarnings("all") - public Data2(final int x) { - this.x = x; - } - @java.lang.SuppressWarnings("all") - public int getX() { - return this.x; - } - @java.lang.SuppressWarnings("all") - public String getName() { - return this.name; - } - @java.lang.SuppressWarnings("all") - public void setName(final String name) { - this.name = name; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public boolean equals(final java.lang.Object o) { - if (o == this) return true; - if (o == null) return false; - if (o.getClass() != this.getClass()) return false; - final Data2 other = (Data2)o; - if (this.x != other.x) return false; - if (this.name == null ? other.name != null : !this.name.equals(other.name)) return false; - return true; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public int hashCode() { - final int PRIME = 31; - int result = 1; - result = result * PRIME + this.x; - result = result * PRIME + (this.name == null ? 0 : this.name.hashCode()); - return result; - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - public java.lang.String toString() { - return "Data2(x=" + this.x + ", name=" + this.name + ")"; - } -} diff --git a/test/delombok/resource/after/GetterAccessLevel.java b/test/delombok/resource/after/GetterAccessLevel.java deleted file mode 100644 index 6d977d87..00000000 --- a/test/delombok/resource/after/GetterAccessLevel.java +++ /dev/null @@ -1,49 +0,0 @@ -class GetterAccessLevel { - boolean isNone; - boolean isPrivate; - boolean isPackage; - boolean isProtected; - boolean isPublic; - String noneString; - String privateString; - String packageString; - String protectedString; - String publicString; - String value; - @java.lang.SuppressWarnings("all") - private boolean isPrivate() { - return this.isPrivate; - } - @java.lang.SuppressWarnings("all") - boolean isPackage() { - return this.isPackage; - } - @java.lang.SuppressWarnings("all") - protected boolean isProtected() { - return this.isProtected; - } - @java.lang.SuppressWarnings("all") - public boolean isPublic() { - return this.isPublic; - } - @java.lang.SuppressWarnings("all") - private String getPrivateString() { - return this.privateString; - } - @java.lang.SuppressWarnings("all") - String getPackageString() { - return this.packageString; - } - @java.lang.SuppressWarnings("all") - protected String getProtectedString() { - return this.protectedString; - } - @java.lang.SuppressWarnings("all") - public String getPublicString() { - return this.publicString; - } - @java.lang.SuppressWarnings("all") - public String getValue() { - return this.value; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/GetterAlreadyExists.java b/test/delombok/resource/after/GetterAlreadyExists.java deleted file mode 100644 index 6a5377ba..00000000 --- a/test/delombok/resource/after/GetterAlreadyExists.java +++ /dev/null @@ -1,140 +0,0 @@ -class Getter1 { - boolean foo; - boolean hasFoo() { - return true; - } -} -class Getter2 { - boolean foo; - boolean isFoo() { - return true; - } -} -class Getter3 { - boolean foo; - boolean getFoo() { - return true; - } -} -class Getter4 { - String foo; - String hasFoo() { - return null; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter5 { - String foo; - String isFoo() { - return null; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter6 { - String foo; - String getFoo() { - return null; - } -} -class Getter7 { - String foo; - boolean hasFoo() { - return false; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter8 { - String foo; - boolean isFoo() { - return false; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter9 { - String foo; - boolean getFoo() { - return false; - } -} -class Getter10 { - boolean foo; - static boolean hasFoo() { - return false; - } -} -class Getter11 { - boolean foo; - static boolean isFoo() { - return false; - } -} -class Getter12 { - boolean foo; - static boolean getFoo() { - return false; - } -} -class Getter13 { - String foo; - static boolean hasFoo() { - return false; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter14 { - String foo; - static boolean isFoo() { - return false; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter15 { - String foo; - static boolean getFoo() { - return false; - } -} -class Getter16 { - String foo; - static String hasFoo() { - return false; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter17 { - String foo; - static String isFoo() { - return false; - } - @java.lang.SuppressWarnings("all") - public String getFoo() { - return this.foo; - } -} -class Getter18 { - String foo; - static String getFoo() { - return false; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/GetterBoolean.java b/test/delombok/resource/after/GetterBoolean.java deleted file mode 100644 index a727e49b..00000000 --- a/test/delombok/resource/after/GetterBoolean.java +++ /dev/null @@ -1,23 +0,0 @@ -class Getter { - boolean foo; - boolean isBar; - boolean hasBaz; - @java.lang.SuppressWarnings("all") - public boolean isFoo() { - return this.foo; - } - @java.lang.SuppressWarnings("all") - public boolean isBar() { - return this.isBar; - } - @java.lang.SuppressWarnings("all") - public boolean hasBaz() { - return this.hasBaz; - } -} -class MoreGetter { - boolean foo; - boolean hasFoo() { - return true; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/GetterOnClass.java b/test/delombok/resource/after/GetterOnClass.java deleted file mode 100644 index bd15ce35..00000000 --- a/test/delombok/resource/after/GetterOnClass.java +++ /dev/null @@ -1,59 +0,0 @@ -class GetterOnClass1 { - boolean isNone; - boolean isPublic; - @java.lang.SuppressWarnings("all") - public boolean isPublic() { - return this.isPublic; - } -} -class GetterOnClass2 { - boolean isNone; - boolean isProtected; - boolean isPackage; - @java.lang.SuppressWarnings("all") - protected boolean isProtected() { - return this.isProtected; - } - @java.lang.SuppressWarnings("all") - boolean isPackage() { - return this.isPackage; - } -} -class GetterOnClass3 { - boolean isNone; - boolean isPackage; - @java.lang.SuppressWarnings("all") - boolean isPackage() { - return this.isPackage; - } -} -class GetterOnClass4 { - boolean isNone; - boolean isPrivate; - @java.lang.SuppressWarnings("all") - private boolean isPrivate() { - return this.isPrivate; - } -} -class GetterOnClass5 { - boolean isNone; - boolean isPublic; - @java.lang.SuppressWarnings("all") - public boolean isPublic() { - return this.isPublic; - } -} -class GetterOnClass6 { - String couldBeNull; - @lombok.NonNull - String nonNull; - @java.lang.SuppressWarnings("all") - public String getCouldBeNull() { - return this.couldBeNull; - } - @lombok.NonNull - @java.lang.SuppressWarnings("all") - public String getNonNull() { - return this.nonNull; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/GetterPlain.java b/test/delombok/resource/after/GetterPlain.java deleted file mode 100644 index 359d46e2..00000000 --- a/test/delombok/resource/after/GetterPlain.java +++ /dev/null @@ -1,12 +0,0 @@ -class GetterPlain { - int i; - int foo; - @java.lang.SuppressWarnings("all") - public int getI() { - return this.i; - } - @java.lang.SuppressWarnings("all") - public int getFoo() { - return this.foo; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/GetterWithDollar.java b/test/delombok/resource/after/GetterWithDollar.java deleted file mode 100644 index 9e02ccb8..00000000 --- a/test/delombok/resource/after/GetterWithDollar.java +++ /dev/null @@ -1,15 +0,0 @@ -class GetterWithDollar1 { - int $i; - @java.lang.SuppressWarnings("all") - public int getI() { - return this.$i; - } -} -class GetterWithDollar2 { - int $i; - int i; - @java.lang.SuppressWarnings("all") - public int getI() { - return this.i; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/NonNullPlain.java b/test/delombok/resource/after/NonNullPlain.java deleted file mode 100644 index 19869db1..00000000 --- a/test/delombok/resource/after/NonNullPlain.java +++ /dev/null @@ -1,25 +0,0 @@ -class NonNullPlain { - @lombok.NonNull - int i; - @lombok.NonNull - String s; - @lombok.NonNull - @java.lang.SuppressWarnings("all") - public int getI() { - return this.i; - } - @java.lang.SuppressWarnings("all") - public void setI(@lombok.NonNull final int i) { - this.i = i; - } - @lombok.NonNull - @java.lang.SuppressWarnings("all") - public String getS() { - return this.s; - } - @java.lang.SuppressWarnings("all") - public void setS(@lombok.NonNull final String s) { - if (s == null) throw new java.lang.NullPointerException("s"); - this.s = s; - } -} diff --git a/test/delombok/resource/after/SetterAccessLevel.java b/test/delombok/resource/after/SetterAccessLevel.java deleted file mode 100644 index dce4cc2f..00000000 --- a/test/delombok/resource/after/SetterAccessLevel.java +++ /dev/null @@ -1,28 +0,0 @@ -class SetterAccessLevel { - boolean isNone; - boolean isPrivate; - boolean isPackage; - boolean isProtected; - boolean isPublic; - boolean value; - @java.lang.SuppressWarnings("all") - private void setIsPrivate(final boolean isPrivate) { - this.isPrivate = isPrivate; - } - @java.lang.SuppressWarnings("all") - void setIsPackage(final boolean isPackage) { - this.isPackage = isPackage; - } - @java.lang.SuppressWarnings("all") - protected void setIsProtected(final boolean isProtected) { - this.isProtected = isProtected; - } - @java.lang.SuppressWarnings("all") - public void setIsPublic(final boolean isPublic) { - this.isPublic = isPublic; - } - @java.lang.SuppressWarnings("all") - public void setValue(final boolean value) { - this.value = value; - } -}
\ No newline at end of file diff --git a/test/delombok/resource/after/SetterAlreadyExists.java b/test/delombok/resource/after/SetterAlreadyExists.java deleted file mode 100644 index e4992b29..00000000 --- a/test/delombok/resource/after/SetterAlreadyExists.java +++ /dev/null @@ -1,35 +0,0 @@ -class Setter1 { - boolean foo; - void setFoo(boolean foo) { - } -} -class Setter2 { - boolean foo; - void setFoo(String foo) { - } -} -class Setter3 { - String foo; - void setFoo(boolean foo) { - } -} -class Setter4 { - String foo; - void setFoo(String foo) { - } -} -class Setter5 { - String foo; - void setFoo() { - } -} -class Setter6 { - String foo; - void setFoo(String foo, int x) { - } -} -class Setter7 { - String foo; - static void setFoo() { - } -} diff --git a/test/delombok/resource/after/SetterOnClass.java b/test/delombok/resource/after/SetterOnClass.java deleted file mode 100644 index 05528ff8..00000000 --- a/test/delombok/resource/after/SetterOnClass.java +++ /dev/null @@ -1,59 +0,0 @@ -class SetterOnClass1 { - boolean isNone; - boolean isPublic; - @java.lang.SuppressWarnings("all") - public void setIsPublic(final boolean isPublic) { - this.isPublic = isPublic; - } -} -class SetterOnClass2 { - boolean isNone; - boolean isProtected; - boolean isPackage; - @java.lang.SuppressWarnings("all") - protected void setIsProtected(final boolean isProtected) { - this.isProtected = isProtected; - } - @java.lang.SuppressWarnings("all") - void setIsPackage(final boolean isPackage) { - this.isPackage = isPackage; - } -} -class SetterOnClass3 { - boolean isN |
