JavaMoney / jsr354-ri-bp

Backport of the JSR 354 RI compatible with Java prior to SE8.
Other
9 stars 14 forks source link

GH-37 Uses static method initializer in JDKCurrencyProvider #38

Closed AlexanderYastrebov closed 7 years ago

AlexanderYastrebov commented 7 years ago

Fixes #37

The cache for currency units should be initialized once on class load but was repopulated in constructor each time new instance is created. This PR makes initialization static.