View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.whitespace.singlespaceseparator;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   public class InputSingleSpaceSeparatorNoErrors {
7   
8       int count; //long indentation - OK
9       String text = "             "; // OK
10  
11      private void foo(int i) {
12          if (i > 10) {
13              if (bar()) {
14                  i++;
15                  foo(i);
16              }
17          }
18      }
19  
20      private boolean bar() {
21          List<Double> list = new ArrayList<>();
22          return Math.random() < 0.5;
23      }
24  }