View Javadoc
1   // someexamples of 1.5 extensions
2   package com.puppycrawl.tools.checkstyle.checks.outertypefilename;
3   
4   @interface MyAnnotation1 {
5       String name();
6       int version();
7   }
8   
9   @MyAnnotation1(name = "ABC", version = 1)
10  public class InputOuterTypeFilename15Extensions
11  {
12  
13  }
14  
15  enum Enum1
16  {
17      A, B, C;
18      Enum1() {}
19      public String toString() {
20          return ""; //some custom implementation
21      }
22  }
23  
24  interface TestRequireThisEnum
25  {
26      enum DAY_OF_WEEK
27      {
28          SUNDAY,
29          MONDAY,
30          TUESDAY,
31          WEDNESDAY,
32          THURSDAY,
33          FRIDAY,
34          SATURDAY
35      }
36  }