aboutsummaryrefslogtreecommitdiff
path: root/src/test/annotation/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/annotation/Test.java')
-rw-r--r--src/test/annotation/Test.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/test/annotation/Test.java b/src/test/annotation/Test.java
new file mode 100644
index 0000000..2c9da5e
--- /dev/null
+++ b/src/test/annotation/Test.java
@@ -0,0 +1,35 @@
+package annotation;
+
+@interface Id {
+ int id();
+}
+
+enum EnumTest {
+ A, B, C
+}
+
+@interface Tag {
+ boolean z();
+ byte b();
+ char c();
+ short s();
+ int i();
+ long j();
+ float f();
+ double d();
+ String string();
+ Class<? extends Object> integer();
+ EnumTest enumtest();
+ String[] array();
+ Id annotation();
+}
+
+@Tag(z = true, b = 1, c = 'a', s = 2, i = 3, j = 4L, f = 5.0F, d = 5.0,
+ string = "abc",
+ enumtest = EnumTest.A,
+ integer = Integer.class,
+ array = { "p", "q", "r" },
+ annotation = @Id(id = 20))
+public class Test {
+ public int test() { return 0; }
+}