KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > coding > InputParameterAssignment


1 package com.puppycrawl.tools.checkstyle.checks.coding;
2
3 public class InputParameterAssignment {
4     int field;
5     void foo1(int field) {
6         int i = field;
7         this.field = field;
8         i++;
9         field = 0;
10         field += 1;
11         this.field++;
12         field--;
13     }
14
15     void foo2() {
16         field = 0;
17     }
18
19     void foo3(String JavaDoc field, int field1) {
20         this.field = (field1 += field.length());
21     }
22 }
23
Popular Tags