Open configuration file for integration-tests read-only to not fail if the file is opened by an Application locally

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-08-07 11:11:45 +00:00
parent a8b31c37a6
commit ed12f1bb49
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class StressMap {
private final Pattern SCRATCH_HANDLER = Pattern.compile("(HSLF|HWPF|HSMF|HMEF)");
public void load(File mapFile) throws IOException {
try (Workbook wb = WorkbookFactory.create(mapFile)) {
try (Workbook wb = WorkbookFactory.create(mapFile, null, true)) {
readExMap(wb.getSheet("Exceptions"));
readHandlerMap(wb.getSheet("Handlers"));
}