diff options
author | Roel Spilker <r.spilker@gmail.com> | 2012-03-19 23:18:37 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2012-03-19 23:18:37 +0100 |
commit | 8bc82cad05b8760aa5a01ffabaa6238b6cc535e1 (patch) | |
tree | 0e02ca81914544fe3df18b5b548ca0916b25e57f /test/transform/resource/after-delombok | |
parent | b4fe2d4e25e164f6063df48891c3a941fabed2e9 (diff) | |
download | lombok-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')
-rw-r--r-- | test/transform/resource/after-delombok/GetterDeprecated.java | 18 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/SetterDeprecated.java | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/GetterDeprecated.java b/test/transform/resource/after-delombok/GetterDeprecated.java new file mode 100644 index 00000000..3387540f --- /dev/null +++ b/test/transform/resource/after-delombok/GetterDeprecated.java @@ -0,0 +1,18 @@ +class GetterDeprecated { + @Deprecated + int annotation; + /** + * @deprecated + */ + int javadoc; + @java.lang.Deprecated + @java.lang.SuppressWarnings("all") + public int getAnnotation() { + return this.annotation; + } + @java.lang.Deprecated + @java.lang.SuppressWarnings("all") + public int getJavadoc() { + return this.javadoc; + } +}
\ No newline at end of file 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 |