View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule527localvariablenames;
2   
3   final class InputSimple
4   {
5       public static final int badConstant = 2;
6       
7       public static final int MAX_ROWS = 2;
8   
9       private static int badStatic = 2;
10      
11      private static int sNumCreated = 0;
12  
13      private int badMember = 2;
14      
15      private int mNumCreated1 = 0;
16       
17      protected int mNumCreated2 = 0;
18  
19      private int[] mInts = new int[] {1,2, 3,
20                                       4};
21  
22      /** test local variables */
23      private void localVariables()
24      {
25          //bad examples
26          int a;
27          int aA; //warn
28          int a1_a; //warn
29          int A_A; //warn
30          int aa2_a; //warn
31          int _a; //warn
32          int _aa; //warn
33          int aa_; //warn
34          int aaa$aaa; //warn
35          int $aaaaaa; //warn
36          int aaaaaa$; //warn
37          
38          //good examples
39          int aa;
40          int aaAa1a;
41          int aaAaaAa2a1;
42      }
43  }