diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2017-11-24 01:02:20 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2017-11-24 01:02:20 +0000 |
commit | cbfb179254fcf1ec07fb83dea58546b5840d97be (patch) | |
tree | fe2101b5cecfd110fd3f4f482cf2d4f92fac8ee3 /src/examples | |
parent | e0c8416726efa9ca12e0791aa89295c9e7964cde (diff) | |
download | poi-cbfb179254fcf1ec07fb83dea58546b5840d97be.tar.gz poi-cbfb179254fcf1ec07fb83dea58546b5840d97be.zip |
#61809 - Infinite loop in SectionIDMap.get() and .put()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1816205 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/hpsf/examples/WriteTitle.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/examples/src/org/apache/poi/hpsf/examples/WriteTitle.java b/src/examples/src/org/apache/poi/hpsf/examples/WriteTitle.java index f6d711698c..17079ed989 100644 --- a/src/examples/src/org/apache/poi/hpsf/examples/WriteTitle.java +++ b/src/examples/src/org/apache/poi/hpsf/examples/WriteTitle.java @@ -21,9 +21,13 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; -import org.apache.poi.hpsf.*; +import org.apache.poi.hpsf.Property; +import org.apache.poi.hpsf.PropertySet; +import org.apache.poi.hpsf.Section; +import org.apache.poi.hpsf.SummaryInformation; +import org.apache.poi.hpsf.Variant; +import org.apache.poi.hpsf.WritingNotSupportedException; import org.apache.poi.hpsf.wellknown.PropertyIDMap; -import org.apache.poi.hpsf.wellknown.SectionIDMap; import org.apache.poi.poifs.filesystem.POIFSFileSystem; /** @@ -64,7 +68,7 @@ public class WriteTitle /* Turn the property set into a summary information property. This is * done by setting the format ID of its first section to * SectionIDMap.SUMMARY_INFORMATION_ID. */ - ms.setFormatID(SectionIDMap.SUMMARY_INFORMATION_ID); + ms.setFormatID(SummaryInformation.FORMAT_ID); /* Create an empty property. */ final Property p = new Property(); |