View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="FinalParameters"/>
5     </module>
6   </module>
7   */
8   package com.puppycrawl.tools.checkstyle.checks.finalparameters;
9   
10  // xdoc section -- start
11  public class Example1 {
12    public Example1() { }
13    public Example1(final int m) { }
14    public Example1(final int m, int n) { } // violation, 'n should be final'
15    public void methodOne(final int x) { }
16    public void methodTwo(int x) { } // violation, 'x should be final'
17    public static void main(String[] args) { } // violation, 'args should be final'
18  }
19  // xdoc section -- end