forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnno2.java
More file actions
30 lines (22 loc) · 468 Bytes
/
Anno2.java
File metadata and controls
30 lines (22 loc) · 468 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
28
29
30
@interface AnnotationExample {
int id();
String title() default "unset";
public static final int a = 3;
int y = 3;
public class InnerAnno {
int z = 3;
public void bar(int x) {
}
}
}
@AnnotationExample(id=1)
class Anno2 {
public static void main(String[] args) {
System.out.println("a");
}
@AnnotationExample(id=2, title="test method")
public static int foo(int a) {
System.out.println(a);
return a;
}
}