aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-10 01:44:04 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-10 01:44:04 +0100
commitfe7f0db2fce7b4c80853b9aed100908ff1f55f40 (patch)
tree41f7c7a289237153307402b7ebe25e372254ae40 /test/transform/resource/after-delombok
parent46d471e9c3dc32b03c34804df1819739a4dffc50 (diff)
downloadlombok-fe7f0db2fce7b4c80853b9aed100908ff1f55f40.tar.gz
lombok-fe7f0db2fce7b4c80853b9aed100908ff1f55f40.tar.bz2
lombok-fe7f0db2fce7b4c80853b9aed100908ff1f55f40.zip
From now on it is possible to specify annotations to be placed on the method
or the parameter of the generated getter/setter methods.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/DataPlain.java52
-rw-r--r--test/transform/resource/after-delombok/GetterOnMethod.java39
-rw-r--r--test/transform/resource/after-delombok/SetterOnMethod.java39
-rw-r--r--test/transform/resource/after-delombok/SetterOnParam.java36
-rw-r--r--test/transform/resource/after-delombok/SetterOnParamAndOnMethod.java8
5 files changed, 174 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/DataPlain.java b/test/transform/resource/after-delombok/DataPlain.java
index ef86f9d7..38e006ed 100644
--- a/test/transform/resource/after-delombok/DataPlain.java
+++ b/test/transform/resource/after-delombok/DataPlain.java
@@ -182,3 +182,55 @@ final class Data4 extends java.util.Timer {
return result;
}
}
+class Data5 {
+ @java.lang.SuppressWarnings("all")
+ public Data5() {
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(final java.lang.Object o) {
+ if (o == this) return true;
+ if (!(o instanceof Data5)) return false;
+ final Data5 other = (Data5)o;
+ if (!other.canEqual(this)) return false;
+ return true;
+ }
+ @java.lang.SuppressWarnings("all")
+ public boolean canEqual(final java.lang.Object other) {
+ return other instanceof Data5;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ int result = 1;
+ return result;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "Data5()";
+ }
+}
+final class Data6 {
+ @java.lang.SuppressWarnings("all")
+ public Data6() {
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(final java.lang.Object o) {
+ if (o == this) return true;
+ if (!(o instanceof Data6)) return false;
+ return true;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ int result = 1;
+ return result;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "Data6()";
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/GetterOnMethod.java b/test/transform/resource/after-delombok/GetterOnMethod.java
new file mode 100644
index 00000000..0c18170b
--- /dev/null
+++ b/test/transform/resource/after-delombok/GetterOnMethod.java
@@ -0,0 +1,39 @@
+class GetterOnMethod {
+ int i;
+ int j;
+ @Deprecated
+ @java.lang.SuppressWarnings("all")
+ public int getI() {
+ return this.i;
+ }
+ @java.lang.Deprecated
+ @java.lang.SuppressWarnings("all")
+ public int getJ() {
+ return this.j;
+ }
+}
+class GetterOnClassOnMethod {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public int getI() {
+ return this.i;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getJ() {
+ return this.j;
+ }
+}
+class GetterOnClassAndOnAField {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public int getI() {
+ return this.i;
+ }
+ @java.lang.Deprecated
+ @java.lang.SuppressWarnings("all")
+ public int getJ() {
+ return this.j;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/SetterOnMethod.java b/test/transform/resource/after-delombok/SetterOnMethod.java
new file mode 100644
index 00000000..b261ce92
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterOnMethod.java
@@ -0,0 +1,39 @@
+class SetterOnMethod {
+ int i;
+ int j;
+ @Deprecated
+ @java.lang.SuppressWarnings("all")
+ public void setI(final int i) {
+ this.i = i;
+ }
+ @java.lang.Deprecated
+ @java.lang.SuppressWarnings("all")
+ public void setJ(final int j) {
+ this.j = j;
+ }
+}
+class SetterOnClassOnMethod {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public void setI(final int i) {
+ this.i = i;
+ }
+ @java.lang.SuppressWarnings("all")
+ public void setJ(final int j) {
+ this.j = j;
+ }
+}
+class SetterOnClassAndOnAField {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public void setI(final int i) {
+ this.i = i;
+ }
+ @java.lang.Deprecated
+ @java.lang.SuppressWarnings("all")
+ public void setJ(final int j) {
+ this.j = j;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/SetterOnParam.java b/test/transform/resource/after-delombok/SetterOnParam.java
new file mode 100644
index 00000000..89a55e00
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterOnParam.java
@@ -0,0 +1,36 @@
+class SetterOnParam {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public void setI(@SuppressWarnings("all") final int i) {
+ this.i = i;
+ }
+ @java.lang.SuppressWarnings("all")
+ public void setJ(@java.lang.SuppressWarnings("all") final int j) {
+ this.j = j;
+ }
+}
+class SetterOnClassOnParam {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public void setI(final int i) {
+ this.i = i;
+ }
+ @java.lang.SuppressWarnings("all")
+ public void setJ(final int j) {
+ this.j = j;
+ }
+}
+class SetterOnClassAndOnAFieldParam {
+ int i;
+ int j;
+ @java.lang.SuppressWarnings("all")
+ public void setI(final int i) {
+ this.i = i;
+ }
+ @java.lang.SuppressWarnings("all")
+ public void setJ(@java.lang.SuppressWarnings("all") final int j) {
+ this.j = j;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/SetterOnParamAndOnMethod.java b/test/transform/resource/after-delombok/SetterOnParamAndOnMethod.java
new file mode 100644
index 00000000..a80c3462
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterOnParamAndOnMethod.java
@@ -0,0 +1,8 @@
+class SetterOnParamAndOnMethod {
+ int i;
+ @Deprecated
+ @java.lang.SuppressWarnings("all")
+ public void setI(@SuppressWarnings("all") final int i) {
+ this.i = i;
+ }
+} \ No newline at end of file