View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="MemberName"/>
5     </module>
6   </module>
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.naming.membername;
10  
11  // xdoc section -- start
12  class Example1 {
13    public int num1;
14    protected int num2;
15    final int num3 = 3;
16    private int num4;
17  
18    static int num5;
19    public static final int CONSTANT = 1;
20  
21    public int NUM1; // violation
22  
23    protected int NUM2; // violation
24  
25    int NUM3; // violation
26  
27    private int NUM4; // violation
28  
29  }
30  // xdoc section -- end