1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="EmptyStatement"/> 5 </module> 6 </module> 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.coding.emptystatement; 10 11 // xdoc section -- start 12 public class Example1 { 13 public void foo() { 14 int i = 5; 15 if(i > 3); // violation 'Empty statement' 16 i++; 17 for (i = 0; i < 5; i++); // violation 'Empty statement' 18 i++; 19 while (i > 10) 20 i++; 21 } 22 } 23 // xdoc section -- end