View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule522typenames;
2   
3   class inputHeaderClass { //warn
4   
5       public interface InputHeader___Interface {}; //warn
6   
7       public enum inputHeaderEnum { one, two }; //warn
8       
9       class NoValid$Name {} //warn
10      
11      class $NoValidName {} //warn
12      
13      class NoValidName$ {} //warn
14      
15  }
16  
17  class ValidName {} //ok
18  
19  class _ValidName {} //warn
20  
21  class Valid_Name {} //warn
22  
23  class ValidName_ {} //warn
24  
25  interface Foo {} // ok
26  
27  interface _Foo {} // warn
28  
29  interface Fo_o {} // warn
30  
31  interface Foo_ {} // warn
32  
33  interface $Foo {} // warn
34  
35  interface Fo$o {} // warn
36  
37  interface Foo$ {} // warn
38  
39  enum FooEnum {} //ok
40  
41  enum _FooEnum {} //warn
42  
43  enum Foo_Enum {} //warn
44  
45  enum FooEnum_ {} //warn
46  
47  enum $FooEnum {} //warn
48  
49  enum Foo$Enum {} //warn
50  
51  enum FooEnum$ {} //warn
52  
53  class aaa {} //warn 
54  
55  interface bbb {} //warn 
56  
57  enum ccc {} //warn 
58  
59  @interface Annotation {} //ok
60  
61  @interface _Annotation {} //warn 
62  
63  @interface Annot_ation {} //warn
64  
65  @interface Annotation_ {} //warn
66  
67  @interface $Annotation {} //warn
68  
69  @interface Annot$ation {} //warn
70  
71  @interface Annotation$ {} //warn