Browse Source

#62921 - Provide OOXMLLite alternative for Java 12+

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846810 13f79535-47bb-0310-9956-ffa450edef68
pull/134/head
Andreas Beeker 5 years ago
parent
commit
7d53738154

+ 1
- 1
jenkins/create_jobs.groovy View File

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

+ 4
- 0
src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java View File

package org.apache.poi.ss.usermodel; package org.apache.poi.ss.usermodel;


import static org.junit.Assert.assertEquals; 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.DateFormatSymbols;
import java.text.FieldPosition; import java.text.FieldPosition;


int actIdx = (Locale.CHINESE.equals(locale) && jreVersion >= 12) ? 1 : 0; 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)); assertEquals(msg, expected.charAt(month), result.charAt(actIdx));
month++; month++;
} }

Loading…
Cancel
Save