diff options
author | chibash <chiba@javassist.org> | 2016-09-18 23:49:43 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2016-09-18 23:49:43 +0900 |
commit | 0e9ff9fd2bdf9ae928c7596714672a2baec01281 (patch) | |
tree | 43578517e2a79e27ac5732b6f31b6b337dc988db /src/test/test5 | |
parent | 460d41808ae623c5e60c89bcafb0aa79176d2dd8 (diff) | |
download | javassist-0e9ff9fd2bdf9ae928c7596714672a2baec01281.tar.gz javassist-0e9ff9fd2bdf9ae928c7596714672a2baec01281.zip |
enables removal of attributes
Diffstat (limited to 'src/test/test5')
-rw-r--r-- | src/test/test5/RemoveAnnotation.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/test5/RemoveAnnotation.java b/src/test/test5/RemoveAnnotation.java new file mode 100644 index 00000000..97f75253 --- /dev/null +++ b/src/test/test5/RemoveAnnotation.java @@ -0,0 +1,20 @@ +package test5; + +@interface RemoveAnno1 {} + +@interface RemoveAnno2 { + int foo() default 3; +} + +@RemoveAnno1 public class RemoveAnnotation { + @RemoveAnno1 @RemoveAnno2(foo=4) + int foo() { return 1; } + + @RemoveAnno2 + int bar() { return 2; } + + @RemoveAnno1 + int baz = 10; + + public int run() { return foo() + bar(); } +} |