View Javadoc
1   package com.google.checkstyle.test.chapter4formatting.rule462horizontalwhitespace;
2   
3   import java.util.function.Function;
4   import java.util.function.Supplier;
5   
6   class InputWhitespaceAroundEmptyTypesAndCycles
7   {
8       private void foo()
9       {
10          int i = 0;
11          String[][] x = { {"foo"} };
12          for (int first = 0; first < 5; first++) {} //ok
13          int j = 0;
14          while (j == 1) {} //ok
15          do {} while (i == 1); //ok
16      }
17  }
18  
19  interface SupplierFunction<T> extends Function<Supplier<T>, T> {} //ok
20  
21  class EmptyFoo {} //ok
22  
23  enum EmptyFooEnum {} //ok