View Javadoc
1   package com.google.checkstyle.test.chapter4formatting.rule4853methodsandconstructorsannotations;
2   
3   /** Some javadoc. */
4   public class InputFormattedMethodsAndConstructorsAnnotations {
5     /** Some javadoc. */
6     public @interface SomeAnnotation1 {}
7   
8     /** Some javadoc. */
9     public @interface SomeAnnotation2 {}
10  
11    // ********testing methods.***********
12  
13    /** testing. */
14    @SomeAnnotation1
15    @SomeAnnotation2
16    void test1() {}
17  
18    /** testing. */
19    @SomeAnnotation1
20    void test2() {}
21  
22    /** testing. */
23    @SomeAnnotation1
24    @SomeAnnotation2
25    void test3() {}
26  
27    @SomeAnnotation1
28    @SomeAnnotation2
29    void test6() {}
30  
31    @SuppressWarnings("blah")
32    void test7() {}
33  
34    // ********testing constructors.*********
35  
36    /** testing. */
37    @SomeAnnotation1
38    @SomeAnnotation2
39    InputFormattedMethodsAndConstructorsAnnotations() {}
40  
41    /** testing. */
42    @SomeAnnotation1
43    InputFormattedMethodsAndConstructorsAnnotations(float f) {}
44  
45    /** testing. */
46    @SomeAnnotation1
47    @SomeAnnotation2
48    InputFormattedMethodsAndConstructorsAnnotations(int x) {}
49  
50    @SomeAnnotation1
51    @SomeAnnotation2
52    InputFormattedMethodsAndConstructorsAnnotations(String a, String b) {}
53  
54    @SuppressWarnings("blah")
55    InputFormattedMethodsAndConstructorsAnnotations(int x, int y) {}
56  }