aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-06-02 21:28:06 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-06-02 21:28:06 +0000
commitbfe3e6a976305870a5df17b86bb16c9c66b15526 (patch)
tree30ee5801520995b83a651e66ec3a3b93aafe4528 /src/scratchpad
parent9eb37895093051dc75b0ce52843d7e717cf31aea (diff)
downloadpoi-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.java3
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);