1 package org.checkstyle.suppressionxpathfilter.needbraces; 2 3 public class InputXpathNeedBracesDo { 4 /** @return helper func **/ 5 boolean condition() 6 { 7 return false; 8 } 9 10 /** Test do/while loops **/ 11 public void test() { 12 // Invalid 13 do test(); while (condition()); // warn 14 } 15 }