blob: f3d8fe4dcdce4868352ea2393910ed320ac1699e (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
package com.puppycrawl.tools.checkstyle.checks.annotation;
@MyAnnotation6
@MyAnnotation5
class InputCorrectAnnotationLocation
{
@MyAnnotation6
@MyAnnotation5
public int a;
@MyAnnotation5
public int b;
@MyAnnotation6
@MyAnnotation5
public int c;
@MyAnnotation5
public int d;
@MyAnnotation6
@MyAnnotation5
public InputCorrectAnnotationLocation()
{
//comment
}
@MyAnnotation5
@MyAnnotation6
void foo1() {}
@MyAnnotation5
@MyAnnotation6
void foo2() {}
@MyAnnotation5
@MyAnnotation6
@MyAnnotation3
@MyAnnotation4
class InnerClass
{
@MyAnnotation6
@MyAnnotation5
public int a;
@MyAnnotation5
public int b;
@MyAnnotation6
@MyAnnotation5
public int c;
@MyAnnotation5
public int d;
@MyAnnotation6
public InnerClass()
{
// comment
}
@MyAnnotation5
@MyAnnotation6 void foo1(int a) {}
@MyAnnotation5
@MyAnnotation6
void foo2() {}
}
@MyAnnotation5
@MyAnnotation6
InnerClass anon = new InnerClass()
{
@MyAnnotation6
@MyAnnotation5
public int a;
@MyAnnotation5 public int b;
@MyAnnotation6
@MyAnnotation5
public int c;
@MyAnnotation5
public int d;
@MyAnnotation5
@MyAnnotation6 void foo1() {}
@MyAnnotation5
@MyAnnotation6
void foo2() {}
};
}
@MyAnnotation5
@MyAnnotation6
class _Foo {}
@interface MyAnnotation5 {}
@interface MyAnnotation6 {}
|