1 package com.google.checkstyle.test.chapter4formatting.rule4853methodsandconstructorsannotations;
2
3
4 public class InputMethodsAndConstructorsAnnotations {
5
6 public @interface SomeAnnotation1 {}
7
8
9 public @interface SomeAnnotation2 {}
10
11
12
13
14 @SomeAnnotation1
15 @SomeAnnotation2
16 void test1() {}
17
18
19 @SomeAnnotation1 void test2() {}
20
21
22 @SomeAnnotation1 @SomeAnnotation2
23
24 void test3() {}
25
26 @SomeAnnotation1
27 @SomeAnnotation2
28
29 void test4() {}
30
31 @SomeAnnotation1 @SomeAnnotation2
32
33
34 void test5() {}
35
36 @SomeAnnotation1 @SomeAnnotation2 void test6() {}
37
38
39 @SuppressWarnings("blah") void test7() {}
40
41
42
43
44
45 @SomeAnnotation1
46 @SomeAnnotation2
47 InputMethodsAndConstructorsAnnotations() {}
48
49
50 @SomeAnnotation1 InputMethodsAndConstructorsAnnotations(float f) {}
51
52
53 @SomeAnnotation1 @SomeAnnotation2
54
55 InputMethodsAndConstructorsAnnotations(int x) {}
56
57 @SomeAnnotation1
58 @SomeAnnotation2
59
60 InputMethodsAndConstructorsAnnotations(String str) {}
61
62 @SomeAnnotation1 @SomeAnnotation2
63
64
65 InputMethodsAndConstructorsAnnotations(double d) {}
66
67
68 @SomeAnnotation1 @SomeAnnotation2 InputMethodsAndConstructorsAnnotations(String a,
69 String b) {}
70
71
72 @SuppressWarnings("blah") InputMethodsAndConstructorsAnnotations(int x, int y) {}
73 }