[Bug 60422] Fix forbidden-api build issue

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1799723 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2017-06-24 00:37:03 +00:00
parent 840904ed91
commit 07cb031c2e
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ public class TestDataFormatter {
try { try {
char euro = '\u20AC'; char euro = '\u20AC';
DataFormatter df = new DataFormatter(Locale.GERMANY); DataFormatter df = new DataFormatter(Locale.GERMANY);
String formatString = String.format( String formatString = String.format(Locale.ROOT,
"_-* #,##0.00\\ \"%s\"_-;\\-* #,##0.00\\ \"%s\"_-;_-* \"-\"??\\ \"%s\"_-;_-@_-", "_-* #,##0.00\\ \"%s\"_-;\\-* #,##0.00\\ \"%s\"_-;_-* \"-\"??\\ \"%s\"_-;_-@_-",
euro, euro, euro); euro, euro, euro);
assertEquals("4.33 " + euro, df.formatRawCellContents(4.33, 178, formatString)); assertEquals("4.33 " + euro, df.formatRawCellContents(4.33, 178, formatString));