I see:  http://www.javapractices.com/Topic14.cjp.  Never mind.

Glen

Am Freitag, den 09.11.2007, 17:33 -0500 schrieb Daniel Kulp:
> On Friday 09 November 2007, Glen Mazza wrote:
> > Am Freitag, den 09.11.2007, 07:48 +0000 schrieb [EMAIL PROTECTED]:
> > >      private int limit = 100 * 1024;
> > > +    private boolean enabled;
> >
> > While it may be that "enabled" will be false by default, it is usually
> > better for readability to initialize that explicitly.  The reader is
> > never sure if "false" was the coder's intent, or that they simply
> > forgot to initialize this variable.
> 
> The PMD rules will prevent that.  Initializing values to the default 
> values just wastes processor time at construction time.
> 
> 

Reply via email to