From c809047b7892e4729f892445f730dff1d21065d6 Mon Sep 17 00:00:00 2001 From: Taiki Sugawara Date: Wed, 22 Feb 2012 05:01:35 +0900 Subject: support delegate with deprecated comment. --- .../resource/after-ecj/DelegateWithDeprecated.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/transform/resource/after-ecj/DelegateWithDeprecated.java (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/DelegateWithDeprecated.java b/test/transform/resource/after-ecj/DelegateWithDeprecated.java new file mode 100644 index 00000000..011eaf36 --- /dev/null +++ b/test/transform/resource/after-ecj/DelegateWithDeprecated.java @@ -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(); + } +} \ No newline at end of file -- cgit