aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/singlespaceseparator/InputSingleSpaceErrors.java
blob: b789b517023d88a9152067dd65eea967dcf7f5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package  com.puppycrawl.   tools.checkstyle.checks.whitespace.singlespaceseparator;

import java.util.List;
import  java.util.Vector;

public class      InputSingleSpaceErrors  {
    int             number; //violation
int i =    99  ;
{
i=1;
i  =2;
 i=  3;
  i =  4;
    i =	5; // A tab between = and 5.
}

    private  void foo  (int     i) {
        if (i  > 10)  {
            if  (bar(  )) {
                i  ++;
                foo  (i);
            }
        }
    }

    private boolean  bar(  ) {
        List  <Double  > list  = new Vector<  >();
        int a	= 0;  // Multiple whitespaces before comment
		int b = 1; // Multiple tabs as indentation are ok.
        return  Math.random() <  0.5;
    }  }