View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ConstantName"/>
5     </module>
6   </module>
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.naming.constantname;
12  
13  // xdoc section -- start
14  class Example1 {
15    public final static int FIRST_CONSTANT1 = 10;
16    protected final static int SECOND_CONSTANT2 = 100;
17    final static int third_Constant3 = 1000; // violation 'must match pattern'
18    private final static int fourth_Const4 = 50; // violation 'must match pattern'
19    public final static int log = 10; // violation 'must match pattern'
20    protected final static int logger = 50; // violation 'must match pattern'
21    final static int loggerMYSELF = 5; // violation 'must match pattern'
22    final static int MYSELF = 100;
23    protected final static int myselfConstant = 1; // violation 'must match pattern'
24  }
25  // xdoc section -- end