aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/SetterOnMethod.java
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/SetterOnMethod.java
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/SetterOnMethod.java')
-rw-r--r--test/transform/resource/after-delombok/SetterOnMethod.java39
1 files changed, 39 insertions, 0 deletions
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