]> source.dussan.org Git - poi.git/commitdiff
forbidden api
authorPJ Fanning <fanningpj@apache.org>
Tue, 25 Jan 2022 22:22:32 +0000 (22:22 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 25 Jan 2022 22:22:32 +0000 (22:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897474 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/ss/formula/functions/NumberValueFunction.java

index 8dd8855ed7e8509c92b1a1953e479ce33752fa1f..1e713b2f9d7ddca0e9a47756e2914467cc838bae 100644 (file)
@@ -41,7 +41,7 @@ public final class NumberValueFunction implements FreeRefFunction {
     public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) {
 
         Locale locale = LocaleUtil.getUserLocale();
-        DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(locale);
+        DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols.getInstance(locale);
 
         String text = null;
         //If the Decimal_separator and Group_separator arguments are not specified, separators from the current locale are used.