forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnno3.java
More file actions
37 lines (30 loc) · 569 Bytes
/
Anno3.java
File metadata and controls
37 lines (30 loc) · 569 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
31
32
33
34
35
36
37
class Outer {
}
@interface TestAnno {
int id();
String title() default "unset";
public static final int a = 3;
class Inner {
private static int a = 4;
public int bar(String a) {
System.out.println(a);
return 0;
}
}
}
@interface Marker {}
@Marker
@TestAnno(id=1)
class Anno3 {
public static void main(String[] args) {
System.out.println("a");
}
@TestAnno(id=2, title="test method")
@Marker public static int foo(int a) {
System.out.println(a);
return a;
}
@Marker
public void bar() {
}
}