Skip to content

Commit

Permalink
Removes mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalaman committed Feb 28, 2014
1 parent e67d4af commit 84e2730
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jpos/src/main/java/org/jpos/iso/ISOCurrency.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
public class ISOCurrency
{
private static Map<String, Currency> currencies;
private static Map<String, Currency> currencies = new HashMap<String, Currency>();
private static final Object mutex = new Object();

// Avoid creation of instances.
Expand All @@ -44,10 +44,6 @@ private ISOCurrency()

static
{
synchronized (mutex)
{
currencies = new HashMap<String, Currency>();
}
addBundle(ISOCurrency.class.getName());
loadPropertiesFromClasspath("META-INF/org/jpos/config/ISOCurrency.properties");
}
Expand Down

0 comments on commit 84e2730

Please sign in to comment.