Fix for issue 342: @Deprecated annotation not propagated to generated getter/setter

This commit is contained in:
Roel Spilker committed 2012-03-19 23:18:37 +01:00
1 parent b4fe2d4e25
commit 8bc82cad05
13 files changed
+150 -17

No files matched your search

@@ -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;
}
}