View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="SeparatorWrap"/>
5     </module>
6   </module>
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.whitespace.separatorwrap;
12  // xdoc section -- start
13  import java.io.
14            IOException; // OK, dot is on the previous line
15  
16  class Example1 {
17    String s;
18  
19    public void foo(int a,
20                      int b) { // OK, comma is on the previous line
21    }
22  
23    public void bar(int p
24                      , int q) { // violation '',' should be on the previous line'
25      if (s
26            .isEmpty()) { // violation ''.' should be on the previous line'
27      }
28    }
29  }
30  // xdoc section -- end