Re: Inefficiencies in DefaultConfiguration

2002-04-10 Thread Stefano Mazzocchi
Peter Donald wrote: > > On Wed, 10 Apr 2002 03:45, Stefano Mazzocchi wrote: > > Can somebody tell me why we have to: > > > > 1) create three strings > > 2) call two methods > > 3) create an exception object > > 4) throw the exception > > 5) and then throw everything away. > > > > in order to

Re: Inefficiencies in DefaultConfiguration

2002-04-10 Thread Peter Donald
On Wed, 10 Apr 2002 03:45, Stefano Mazzocchi wrote: > Can somebody tell me why we have to: > > 1) create three strings > 2) call two methods > 3) create an exception object > 4) throw the exception > 5) and then throw everything away. > > in order to resort to the default value? Its legacy i

Inefficiencies in DefaultConfiguration

2002-04-09 Thread Stefano Mazzocchi
Please look here (AbstractConfiguration) public String getValue( final String defaultValue ) { try { return getValue(); } catch( final ConfigurationException ce ) { return defaultValue; } } then look here pu