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