1 /* 2 WhitespaceAfter 3 tokens = DO_WHILE 4 5 6 */ 7 8 package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespaceafter; 9 10 public class InputWhitespaceAfterDoWhile { 11 12 boolean condition() { 13 return false; 14 } 15 16 void testDoWhile() { 17 //Valid 18 do { 19 testDoWhile(); 20 } while (condition()); 21 22 //Invalid 23 do { 24 testDoWhile(); 25 } while(condition()); // violation ''while' is not followed by whitespace' 26 } 27 }