View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespaceafter;
2   
3   public class InputWhitespaceAfterDoWhile {
4   
5       boolean condition() {
6           return false;
7       }
8   
9       void testDoWhile() {
10          //Valid
11          do {
12              testDoWhile();
13          } while (condition());
14  
15          //Invalid
16          do {
17              testDoWhile();
18          } while(condition());            //violation
19      }
20  }