aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2016-07-21 23:09:07 +0000
committerNick Burch <nick@apache.org>2016-07-21 23:09:07 +0000
commit6d59eef6e47f6266b3f64d2a90c9cbe153b8cb90 (patch)
tree193963e0248bb5cbba10c18a377593cbc757f366 /src/java/org/apache/poi/hssf
parent48f255f37e272fa4f131d534753af21159432420 (diff)
downloadpoi-6d59eef6e47f6266b3f64d2a90c9cbe153b8cb90.tar.gz
poi-6d59eef6e47f6266b3f64d2a90c9cbe153b8cb90.zip
Provide a createOrUpdateDocument method at the POIFS level, and use to simplify writing code #57919
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753739 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hssf')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
index 32789ca96d..123d8d3329 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
@@ -1312,7 +1312,7 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss
workbookDoc.replaceContents(new ByteArrayInputStream(getBytes()));
// Update the properties streams in the file
- writeProperties(directory.getFileSystem(), null);
+ writeProperties();
// Sync with the File on disk
directory.getFileSystem().writeFilesystem();