diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2018-06-02 21:28:06 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2018-06-02 21:28:06 +0000 |
commit | bfe3e6a976305870a5df17b86bb16c9c66b15526 (patch) | |
tree | 30ee5801520995b83a651e66ec3a3b93aafe4528 /src/scratchpad | |
parent | 9eb37895093051dc75b0ce52843d7e717cf31aea (diff) | |
download | poi-bfe3e6a976305870a5df17b86bb16c9c66b15526.tar.gz poi-bfe3e6a976305870a5df17b86bb16c9c66b15526.zip |
sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1832748 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hslf/record/TextRulerAtom.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/record/TextRulerAtom.java b/src/scratchpad/src/org/apache/poi/hslf/record/TextRulerAtom.java index e0c45a5daf..b8ef54ad10 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/record/TextRulerAtom.java +++ b/src/scratchpad/src/org/apache/poi/hslf/record/TextRulerAtom.java @@ -29,6 +29,7 @@ import java.util.List; import org.apache.poi.hslf.model.textproperties.HSLFTabStop; import org.apache.poi.hslf.model.textproperties.HSLFTabStopPropCollection; import org.apache.poi.util.BitField; +import org.apache.poi.util.IOUtils; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.LittleEndianByteArrayInputStream; import org.apache.poi.util.LittleEndianOutputStream; @@ -89,7 +90,7 @@ public final class TextRulerAtom extends RecordAtom { try { // Get the header. - leis.read(_header); + IOUtils.readFully(leis, _header); // Get the record data. read(leis); |