From 50a2b9376b5d3e2e22f3c2bec2072c4564b8b95b Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 29 Sep 2021 17:56:27 +0000 Subject: [PATCH] forbidden api git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893730 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java index e8c7e5ad14..4b3e4d1f8e 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java @@ -1232,7 +1232,7 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook { XSSFCell cell = row2.createCell(0); b.linkExternalWorkbook(nameA, a); - String formula = String.format("SUM('[%s]Sheet0'!A1:B1)", nameA); + String formula = String.format(LocaleUtil.getUserLocale(), "SUM('[%s]Sheet0'!A1:B1)", nameA); cell.setCellFormula(formula); XSSFFormulaEvaluator evaluator = b.getCreationHelper().createFormulaEvaluator(); evaluator.evaluateFormulaCell(cell);