From: Dominik Stadler Date: Sat, 16 Sep 2017 08:21:35 +0000 (+0000) Subject: Fix typos and warnings X-Git-Tag: REL_4_0_0_FINAL~534 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=128c17e83ed7487f320fb20122be1603a1c9fd29;p=poi.git Fix typos and warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808509 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hpsf/PropertySetFactory.java b/src/java/org/apache/poi/hpsf/PropertySetFactory.java index c3ced5d106..44436c3b57 100644 --- a/src/java/org/apache/poi/hpsf/PropertySetFactory.java +++ b/src/java/org/apache/poi/hpsf/PropertySetFactory.java @@ -93,7 +93,7 @@ public class PropertySetFactory { LittleEndianInputStream leis = new LittleEndianInputStream(stream); int byteOrder = leis.readUShort(); int format = leis.readUShort(); - int osVersion = (int)leis.readUInt(); + /*int osVersion = (int)*/leis.readUInt(); byte[] clsIdBuf = new byte[ClassID.LENGTH]; leis.readFully(clsIdBuf); int sectionCount = (int)leis.readUInt(); diff --git a/src/java/org/apache/poi/poifs/filesystem/FileMagic.java b/src/java/org/apache/poi/poifs/filesystem/FileMagic.java index a4577dfed6..c7fe7ca99c 100644 --- a/src/java/org/apache/poi/poifs/filesystem/FileMagic.java +++ b/src/java/org/apache/poi/poifs/filesystem/FileMagic.java @@ -23,6 +23,7 @@ import static org.apache.poi.poifs.common.POIFSConstants.RAW_XML_FILE_HEADER; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.Charset; import org.apache.poi.poifs.storage.HeaderBlockConstants; import org.apache.poi.util.IOUtils; @@ -75,7 +76,7 @@ public enum FileMagic { /** PDF document */ PDF("%PDF"), /** Some different HTML documents */ - HTML("