View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="MethodParamPad"/>
5     </module>
6   </module>
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.whitespace.methodparampad;
12  
13  // xdoc section -- start
14  class Example1 {
15    public Example1() {
16      super();
17    }
18  
19    public Example1 (int aParam) { // violation ''(' is preceded with whitespace'
20      super (); // violation ''(' is preceded with whitespace'
21    }
22  
23    public void method() {}
24  
25    public void methodWithVeryLongName
26    () {} // violation ''(' should be on the previous line.'
27  }
28  // xdoc section -- end