Checkstyle complains about code like this:
private final int foo;
Ctor(int foo) {
this.foo = foo;
}
Which is perfectly acceptable IMO.
I really do not see the point of renaming all param names in a ctor.
In a normal method, yes, you do not want to 'hide' an ivar with a pname.
Gary
--
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory