diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-03-20 21:27:02 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-03-20 21:27:02 +0000 |
commit | 207b98a5dc4c56435ff3c1876122c460ad8d4903 (patch) | |
tree | 7f98fb80f29ce798e12ce60e573f147d2c123bee /src/ooxml/testcases/org/apache/poi | |
parent | 9618056f1d42e2d73a9813a6a13a4693d6ca4452 (diff) | |
download | poi-207b98a5dc4c56435ff3c1876122c460ad8d4903.tar.gz poi-207b98a5dc4c56435ff3c1876122c460ad8d4903.zip |
Forbidden apis fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFComment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFComment.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFComment.java index f1ba77714a..79ffa2d701 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFComment.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFComment.java @@ -17,6 +17,7 @@ package org.apache.poi.xwpf.usermodel; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; +import org.apache.poi.util.LocaleUtil; import org.apache.poi.xwpf.XWPFTestDataSamples; import org.junit.jupiter.api.Test; @@ -43,7 +44,7 @@ class TestXWPFComment { @Test public void testAddComment() throws IOException { BigInteger cId = BigInteger.valueOf(0); - Calendar date = Calendar.getInstance(); + Calendar date = LocaleUtil.getLocaleCalendar(); try (XWPFDocument docOut = new XWPFDocument()) { assertNull(docOut.getDocComments()); |