View Javadoc
1   /*
2   AnnotationLocation
3   allowSamelineMultipleAnnotations = (default)false
4   allowSamelineSingleParameterlessAnnotation = false
5   allowSamelineParameterizedAnnotation = (default)false
6   tokens = (default)CLASS_DEF, INTERFACE_DEF, PACKAGE_DEF, ENUM_CONSTANT_DEF, \
7            ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF, COMPACT_CTOR_DEF
8   
9   
10  */
11  
12  package com.puppycrawl.tools.checkstyle.checks.annotation.annotationlocation;
13  
14  @MyAnnotation11 @MyAnnotation12 @MyAnnotation13 // 3 violations
15  public class InputAnnotationLocationCustomAnnotationsDeclared {
16  
17      @MyAnnotation13
18      void method() {
19  
20      }
21  
22      @MyAnnotation13
23      @MyAnnotation12
24      void method2() {
25  
26      }
27  
28  }
29  
30  @interface MyAnnotation11 {
31  }
32  
33  @interface MyAnnotation12 {
34  }
35  
36  @interface MyAnnotation13 {
37  }