forbidden-apis-fix

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2016-06-30 23:03:17 +00:00
parent 6eab79528b
commit 1b086d3a35

View File

@ -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