#62921 - Provide OOXMLLite alternative for Java 12+

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846810 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2018-11-18 00:23:49 +00:00
parent 0d052def85
commit 7d53738154
2 changed files with 5 additions and 1 deletions

View File

@ -377,7 +377,7 @@ poijobs.each { poijob ->
}
} else if (poijob.noScratchpad) {
ant {
targets(['clean', 'compile-all'] + (poijob.properties ?: []))
targets(['clean', 'compile'] + (poijob.properties ?: []))
prop('coverage.enabled', true)
antInstallation(antRT)
}

View File

@ -18,6 +18,8 @@
package org.apache.poi.ss.usermodel;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.text.DateFormatSymbols;
import java.text.FieldPosition;
@ -75,6 +77,8 @@ public class TestExcelStyleDateFormatter {
int actIdx = (Locale.CHINESE.equals(locale) && jreVersion >= 12) ? 1 : 0;
assertNotNull(msg, result);
assertTrue(msg, result.length() > actIdx);
assertEquals(msg, expected.charAt(month), result.charAt(actIdx));
month++;
}