aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/xmldefs/Anno5.java
blob: 5906bcaa193cd47bb88edf852760e3ab431135e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface AnnoShort {
  short value() default 3;
  short sss() default 3;
}

@Retention(RetentionPolicy.RUNTIME)
@interface AnnoDouble {
  double value() default 3.0d;
  double ddd() default 3.0d;
}

@Retention(RetentionPolicy.RUNTIME)
@interface AnnoFloat {
  float value() default 4.0f;
  float fff() default 4.0f;
}

@Retention(RetentionPolicy.RUNTIME)
@interface AnnoChar {
  char value() default 'a';
  char ccc() default 'a';
}

@Retention(RetentionPolicy.RUNTIME)
@interface AnnoByte {
  byte value() default 66;
  byte bbb() default 66;
}

@Retention(RetentionPolicy.RUNTIME)
@interface AnnoInt {
  int value() default 111;
  int iii() default 111;
}