View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="NoWhitespaceAfter"/>
5     </module>
6   </module>
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.whitespace.nowhitespaceafter;
12  
13  // xdoc section -- start
14  class Example1 {
15    public void lineBreak(String x) {
16      Integer.
17          parseInt(x);
18      Integer.parseInt(x);
19    }
20  
21    public void dotOperator(String s) {
22      Integer.parseInt(s);
23      Integer. parseInt(s); // violation ''.' is followed by whitespace'
24    }
25  
26    public void arrayDec() {
27      int[] arr;
28      int [] array; // violation ''int' is followed by whitespace'
29    }
30  
31    public void bitwiseNot(int a) {
32      a = ~ a; // violation ''~' is followed by whitespace'
33      a = ~a;
34    }
35  }
36  // xdoc section -- end