JavaMoney / jsr354-ri

JSR 354 - Moneta: Reference Implementation
Other
344 stars 101 forks source link

Avoid intermediate object when creating BigDecimal #233

Closed marschall closed 6 years ago

marschall commented 6 years ago

Currently in some places a BigDecimal is created from an unscaled value and a scale using an intermediate BigDecimal. This creates unnecessary object churn. Such a BigDecimal can be created directly.


This change is Reviewable