View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="SeparatorWrap">
5         <property name="tokens" value="COMMA"/>
6         <property name="option" value="nl"/>
7       </module>
8     </module>
9   </module>
10  
11  
12  */
13  
14  package com.puppycrawl.tools.checkstyle.checks.whitespace.separatorwrap;
15  // xdoc section -- start
16  class Example3 {
17    String s;
18  
19    int a,
20      b; // violation above '',' should be on a new line'
21  
22    void foo(int a,
23                  int b) { // violation above '',' should be on a new line'
24      int r
25        , t; // OK, because it is on a new line
26    }
27  
28    void bar(int p
29                  , int q) { // OK, because it is on a new line
30    }
31  }
32  // xdoc section -- end