You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2004/09/01 09:34:57 UTC

Re: use final iin method parameters

Gregor J. Rothfuss wrote:
> http://www.onjava.com/pub/a/onjava/2004/04/28/hardcorejava.html
> 
> Every parameter to a method should be declared final unless the 
> parameter is intended to be an out or in-out parameter. In addition, 
> final should be used on all variables in immutable classes and whenever 
> you declare a local variable that you don't intend to change throughout 
> the method.
> 
> wdyt?

It's a good practise, I'll suggest that we try to get used to it.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org