View Javadoc
1   package com.google.checkstyle.test.chapter2filebasic.rule21filename;
2   
3   @interface MyAnnotation2 { //warn
4       String name();
5       int version();
6   }
7   
8   @MyAnnotation2(name = "ABC", version = 1)
9   class InputOuterTypeFilename3 //ok
10  {
11  
12  }
13  
14  enum Enum2 //ok
15  {
16      A, B, C;
17      Enum2() {}
18      public String toString() {
19          return ""; //some custom implementation
20      }
21  }
22  
23  interface TestRequireThisEnum2 //ok
24  {
25      enum DAY_OF_WEEK
26      {
27          SUNDAY,
28          MONDAY,
29          TUESDAY,
30          WEDNESDAY,
31          THURSDAY,
32          FRIDAY,
33          SATURDAY
34      }
35  }
36  
37