7156459: Remove unnecessary get() from Currency.getInstance()
Reviewed-by: chegar, dholmes, mduigou
This commit is contained in:
parent
4d9e420aa7
commit
6f79a87444
@ -323,9 +323,10 @@ public final class Currency implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
instance = instances.putIfAbsent(currencyCode,
|
Currency currencyVal =
|
||||||
new Currency(currencyCode, defaultFractionDigits, numericCode));
|
new Currency(currencyCode, defaultFractionDigits, numericCode);
|
||||||
return (instance != null ? instance : instances.get(currencyCode));
|
instance = instances.putIfAbsent(currencyCode, currencyVal);
|
||||||
|
return (instance != null ? instance : currencyVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user