aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/SetterDeprecated.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-03-19 23:18:37 +0100
committerRoel Spilker <r.spilker@gmail.com>2012-03-19 23:18:37 +0100
commit8bc82cad05b8760aa5a01ffabaa6238b6cc535e1 (patch)
tree0e02ca81914544fe3df18b5b548ca0916b25e57f /test/transform/resource/after-delombok/SetterDeprecated.java
parentb4fe2d4e25e164f6063df48891c3a941fabed2e9 (diff)
downloadlombok-8bc82cad05b8760aa5a01ffabaa6238b6cc535e1.tar.gz
lombok-8bc82cad05b8760aa5a01ffabaa6238b6cc535e1.tar.bz2
lombok-8bc82cad05b8760aa5a01ffabaa6238b6cc535e1.zip
Fix for issue 342: @Deprecated annotation not propagated to generated getter/setter
Diffstat (limited to 'test/transform/resource/after-delombok/SetterDeprecated.java')
-rw-r--r--test/transform/resource/after-delombok/SetterDeprecated.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/SetterDeprecated.java b/test/transform/resource/after-delombok/SetterDeprecated.java
new file mode 100644
index 00000000..5a6cf9f3
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterDeprecated.java
@@ -0,0 +1,18 @@
+class SetterDeprecated {
+ @Deprecated
+ int annotation;
+ /**
+ * @deprecated
+ */
+ int javadoc;
+ @java.lang.Deprecated
+ @java.lang.SuppressWarnings("all")
+ public void setAnnotation(final int annotation) {
+ this.annotation = annotation;
+ }
+ @java.lang.Deprecated
+ @java.lang.SuppressWarnings("all")
+ public void setJavadoc(final int javadoc) {
+ this.javadoc = javadoc;
+ }
+} \ No newline at end of file