forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnno1.java
More file actions
27 lines (16 loc) · 393 Bytes
/
Anno1.java
File metadata and controls
27 lines (16 loc) · 393 Bytes
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
@interface AnnoEx {
String title() default "simple string";
int value() default 0;
}
@AnnoEx(value=3, title="asdf")
class Anno1 {
@AnnoEx
public static void zero() {}
@AnnoEx(1)
public static void one() {}
@AnnoEx(value=2, title="bar")
public static void two() {}
public static void main(String[] args) {
System.out.println("a");
}
}