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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to