From eee5205d0c1c843f5520d2cbf502641f8d7f40dc Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 24 Jun 2017 00:37:03 +0000 Subject: [PATCH] [Bug 60422] Fix forbidden-api build issue git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799723 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/usermodel/TestDataFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java b/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java index d98133de1..b7990b43f 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java +++ b/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java @@ -862,7 +862,7 @@ public class TestDataFormatter { try { char euro = '\u20AC'; DataFormatter df = new DataFormatter(Locale.GERMANY); - String formatString = String.format( + String formatString = String.format(Locale.ROOT, "_-* #,##0.00\\ \"%s\"_-;\\-* #,##0.00\\ \"%s\"_-;_-* \"-\"??\\ \"%s\"_-;_-@_-", euro, euro, euro); assertEquals("4.33 " + euro, df.formatRawCellContents(4.33, 178, formatString));