]> source.dussan.org Git - poi.git/commitdiff
Open configuration file for integration-tests read-only to not fail if the file is...
authorDominik Stadler <centic@apache.org>
Mon, 7 Aug 2023 11:11:45 +0000 (11:11 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 7 Aug 2023 11:11:45 +0000 (11:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911504 13f79535-47bb-0310-9956-ffa450edef68

poi-integration/src/test/java/org/apache/poi/stress/StressMap.java

index cf533c5b4f1a61b3c1e448c3ab2fa9207d55a848..12c6afe21f485d917efb7c9785dd58cf5f47e2d3 100644 (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"));
         }