View Javadoc
1   /*
2   FinalParameters
3   ignorePrimitiveTypes = true
4   tokens = (default)METHOD_DEF, CTOR_DEF
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.finalparameters;
10  
11  public class InputFinalParametersPrimitiveTypes
12  {
13      void foo(int i) {} //no warning
14      void foo1(int i, String k, float s) {}  // violation
15      void foo2(String s, Object o, long l) {}  // 2 violations
16      void foo3(int[] array) {}  // violation
17      void foo4(int i, float x, int[] s) {}  // violation
18      void foo5(int x, long[] l, String s) {}  // 2 violations
19  }