From: Andreas Beeker Date: Thu, 30 Jun 2016 23:03:17 +0000 (+0000) Subject: forbidden-apis-fix X-Git-Tag: REL_3_15_BETA3~245 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4aea0697655dd922775351389840faa5312e1343;p=poi.git forbidden-apis-fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750868 13f79535-47bb-0310-9956-ffa450edef68 --- 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 d9905f8f65..8e66f187e8 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