Re: Objects don't get initialized sometimes
Re: Objects don't get initialized sometimes
- Subject: Re: Objects don't get initialized sometimes
- From: Ken Anderson <email@hidden>
- Date: Wed, 13 Jan 2010 22:36:27 -0500
One minor point... weight, which is a BigDecimal, is immutable. The
'setScale' method actually returns a new BigDecimal, so this code will
not do what is intended.
This has to be one of my biggest pet peeves... it is probably the
worst named method in all of Java land.
Ken
On Jan 13, 2010, at 6:53 PM, Chuck Hill wrote:
if(weight.scale() < 0)
weight.setScale(0);
return weight;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden