support delegate with deprecated comment.

This commit is contained in:
Taiki Sugawara committed 2012-02-22 05:01:35 +09:00
1 parent 0f86101098
commit c809047b78
4 files changed
+73 -1

No files matched your search

@@ -0,0 +1,29 @@
class DelegateWithDeprecated {
private Bar bar;
private interface Bar {
@Deprecated
void deprecatedAnnotation();
/** @deprecated */
void deprecatedComment();
void notDeprecated();
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public void deprecatedAnnotation() {
this.bar.deprecatedAnnotation();
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
public void deprecatedComment() {
this.bar.deprecatedComment();
}
@java.lang.SuppressWarnings("all")
public void notDeprecated() {
this.bar.notDeprecated();
}
}