https://issues.apache.org/bugzilla/show_bug.cgi?id=43656
--- Comment #8 from Nils Eckert <[EMAIL PROTECTED]> 2008-08-03 07:05:12 PST --- Created an attachment (id=22355) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22355) Removed unnecessary Object-creation in coerceToNumber() The method protected final static Number coerceToNumber(final Number number, final Class type) created new BigInteger or BigDecimal Objects if the input-value was of the given type. As far as BigInteger and BigDecimal are immutable we can return the input value. Another possible risk is the number.doubleValue() in the BigDecimal if clause. This behaves different to the coerceToType Method and was replaced with number.toString(). -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]