View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="WhitespaceAround">
5         <property name="allowEmptyLoops" value="true"/>
6       </module>
7     </module>
8   </module>
9   
10  
11  */
12  
13  package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespacearound;
14  
15  // xdoc section -- start
16  class Example7 {
17    int y = 0;
18    void example() {
19      for (int i = 100;i > 10; i--){}
20      do {} while (y == 1);
21      int a=4; // 2 violations
22      // no space before and after '='
23    }
24  }
25  // xdoc section -- end