From 1b086d3a35cdd4adda532b00403cc700db314df6 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Thu, 30 Jun 2016 23:03:17 +0000 Subject: [PATCH] forbidden-apis-fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750868 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/model/FileInformationBlock.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java b/src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java index d9905f8f6..8e66f187e 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java @@ -21,6 +21,7 @@ import java.io.IOException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.HashSet; +import java.util.Locale; import org.apache.poi.EncryptedDocumentException; import org.apache.poi.hwpf.model.io.HWPFOutputStream; @@ -144,7 +145,7 @@ public final class FileInformationBlock implements Cloneable private void assertCbRgFcLcb() { int nfib = getNFib(); - String nfibHex = String.format("%04X", nfib); + String nfibHex = String.format(Locale.ROOT, "%04X", nfib); // Note - CommonCrawl shows there's more variation in these than // the documentation suggests, so accept common clusters around