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. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
