View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="StaticVariableName">
5         <property name="applyToPublic" value="false"/>
6         <property name="applyToProtected" value="false"/>
7       </module>
8     </module>
9   </module>
10  */
11  
12  
13  package com.puppycrawl.tools.checkstyle.checks.naming.staticvariablename;
14  
15  // xdoc section -- start
16  class Example2 {
17    public static int goodStatic = 2;
18    private static int badStatic = 2;
19    public static int ItStatic1 = 2;
20    protected static int ItStatic2 = 2;
21    private static int ItStatic = 2; // violation, 'must match pattern'
22    public static int it_static = 2;
23    public static int It_Static = 2;
24    private static int It_Static1 = 2; // violation, 'must match pattern'
25    static int It_Static2 = 2; // violation, 'must match pattern'
26  }
27  // xdoc section -- end