View Javadoc
1   /*
2   EmptyForIteratorPad
3   option = \tSPACE
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.whitespace.emptyforiteratorpad;
9   
10  class InputEmptyForIteratorPadToCheckTrimFunctionInOptionProperty {
11  
12      void method() {
13  
14          for (int i = 0; i < 1;i++ ) {
15          }
16  
17          for (int i = 0; i < 1; i++ ) {
18          }
19  
20          for (int i = 0; i < 1;) { // violation '';' is not followed by whitespace'
21              i++;
22          }
23  
24          for (int i = 0; i < 1; ) { // ok
25              i++;
26          }
27      }
28  }