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