View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="IllegalTokenText">
5         <property name="tokens" value="NUM_INT,NUM_LONG"/>
6         <property name="format" value="^0[^lx]"/>
7         <property name="ignoreCase" value="true"/>
8       </module>
9     </module>
10  </module>
11  */
12  
13  package com.puppycrawl.tools.checkstyle.checks.coding.illegaltokentext;
14  
15  // xdoc section -- start
16  public class Example4 {
17    public void myTest() {
18      int test1 = 0; // OK
19      int test2 = 0x111; // OK
20      int test3 = 0X111; // OK, case is ignored
21      int test4 = 010; // violation
22      long test5 = 0L; // OK
23      long test6 = 010L; // violation
24    }
25  }
26  // xdoc section -- end