hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Use of final keyword
Date Wed, 16 Jan 2013 03:29:12 GMT
On Tue, Jan 15, 2013 at 9:46 AM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Tue, 2013-01-15 at 08:26 -0500, Gary Gregory wrote:
> > Over in Log4J-land, we've discussed [1] the use of the final keyword for
> > locals and parameters.
> >
> > In brief [1]: The final keyword in trunk: sometimes it is used, sometimes
> > not. I propose we use it all over consistently.
> >
> > [1]
> http://apache-logging.6191.n7.nabble.com/v2-final-keyword-td17452.html
> >
>
> I tend to use final modifier for method parameters a lot (an old habit
> that goes back to my Delphi programming days ;)). If it is done for
> local variables (as long as it is done consistently and enforced with
> the style check plugin) I would be in favor it. I would not bother with
> one time exercise, though.
>

I added final for locals in trunk r 1433815.

Gary


>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message