View Javadoc
1   package com.google.checkstyle.test.chapter2filebasic.rule21filename;
2   
3   @interface MyAnnotation1 { //ok
4       String name();
5       int version();
6   }
7   
8   @MyAnnotation1(name = "ABC", version = 1)
9   public class InputOuterTypeFilename1 //ok
10  {
11  
12  }
13  
14  enum Enum1 //ok
15  {
16      A, B, C;
17      Enum1() {}
18      public String toString() {
19          return ""; //some custom implementation
20      }
21  }
22  
23  interface TestRequireThisEnum //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