01: /*
02: * Author: Chris Seguin
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package method.param;
10:
11: /**
12: * Description of the Class
13: *
14: *@author Chris Seguin
15: */
16: public class TestRenameParamSample {
17: private int paramName;
18:
19: /**
20: * Constructor for the TestRenameParamSample object
21: *
22: *@param paramName Description of Parameter
23: */
24: public TestRenameParamSample(int paramName) {
25: this .paramName = paramName;
26: }
27:
28: /**
29: * Description of the Method
30: *
31: *@return Description of the Returned Value
32: */
33: public boolean paramName() {
34: System.out.println("This is a bad name for a method");
35: return true;
36: }
37:
38: /**
39: * Description of the Method
40: *
41: *@param paramName Description of Parameter
42: *@param radius Description of Parameter
43: *@return Description of the Returned Value
44: */
45: public double function(double paramName, double radius) {
46: class NestedClass {
47:
48: private double paramName;
49:
50: /**
51: * Constructor for the NestedClass object
52: *
53: *@param init Description of Parameter
54: */
55: public NestedClass(double init) {
56: paramName = init;
57: }
58:
59: /**
60: * Description of the Method
61: *
62: *@return Description of the Returned Value
63: */
64: public double square() {
65: return paramName * paramName;
66: }
67: }
68:
69: NestedClass nc = new NestedClass(paramName);
70: return radius * nc.square() + paramName;
71: }
72: }
|