1 package com.puppycrawl.tools.checkstyle.checks.design.designforextension;
2
3 public class InputDesignForExtensionIgnoredAnnotations {
4
5 @Override
6 public int hashCode() {
7 return super.hashCode();
8 }
9
10
11
12
13
14
15 @Override
16 public boolean equals(Object obj) {
17 return super.equals(obj);
18 }
19
20 @Deprecated
21 public void testFoo() throws Exception {
22 final int a = 5;
23 final int b = 6;
24 }
25
26 @Deprecated
27 public String toString() {
28 return super.toString();
29 }
30
31 public int foo1() {return 1;}
32
33
34
35
36
37 public int foo2() {return 2;}
38
39 public void foo3() {}
40
41 public class C extends B {
42 @Deprecated
43 @Override
44 public void testFoo() {
45 super.testFoo();
46 }
47 }
48
49 public class B {
50
51 public void testFoo() {
52 final int a = 6;
53 }
54 }
55
56
57 @Deprecated
58 public void foo4() {return;}
59
60
61
62
63 @Deprecated
64 public void foo5() {return;}
65
66 @java.lang.Deprecated
67 public void foo6() {return;}
68
69
70 @Deprecated
71 public void foo7() {
72 return;
73 }
74
75
76
77 @Deprecated
78 public void foo8() {
79 return;
80 }
81
82
83 @Deprecated
84 public void foo9() {
85 return;
86 }
87
88
89 @Deprecated
90 public void foo10() {
91 return;
92 }
93
94 @Deprecated
95
96 public int foo11() {
97 return 1;
98 }
99
100 @Deprecated
101
102 public int foo12() {
103 return 1;
104 }
105
106 @Deprecated
107
108 public void foo13() { }
109
110 @Deprecated
111
112 public void foo14() { }
113
114 @Deprecated
115
116 public void foo15() { }
117
118 @Deprecated
119
120 public void foo16() { }
121
122 @Deprecated
123 @InputDesignForExtensionsLocalAnnotations.ClassRule
124 public void foo17() { return; }
125
126 @Deprecated
127 @InputDesignForExtensionsLocalAnnotations.ClassRule
128
129 public void foo18() { return; }
130
131 @Deprecated
132
133 @InputDesignForExtensionsLocalAnnotations.ClassRule
134 public void foo19() { return; }
135
136
137 @Deprecated
138 @InputDesignForExtensionsLocalAnnotations.ClassRule
139 public void foo20() { return; }
140
141 @InputDesignForExtensionsLocalAnnotations.ClassRule
142 public void foo21() { return; }
143
144 private int age;
145
146 @Inject
147 public void setAge(int age) {
148 this.age = age;
149 }
150
151 public @interface Inject { }
152
153 public @MyAnnotation void foo22() {
154 foo1();
155 }
156
157 @MyAnnotation public void foo23() {
158 foo1();
159 }
160
161 public void foo24(@MyAnnotation int a) {
162 foo1();
163 }
164
165 public @interface MyAnnotation { }
166 }