View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="MultipleVariableDeclarations"/>
5     </module>
6   </module>
7   */
8   package com.puppycrawl.tools.checkstyle.checks.coding.multiplevariabledeclarations;
9   
10  // xdoc section -- start
11  public class Example1 {
12    public void myTest() {
13      int mid = 0;
14      int high = 0;
15  
16      int lower, higher;
17      // violation above, 'Each variable declaration must be in its own statement'
18  
19      int value, // violation, 'Each variable declaration must be in its own statement'
20          index;
21      int place = mid, number = high;
22      // violation above, 'Each variable declaration must be in its own statement'
23    }
24  }
25  // xdoc section -- end