From bfe3e6a976305870a5df17b86bb16c9c66b15526 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 2 Jun 2018 21:28:06 +0000 Subject: sonar fixes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1832748 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hslf/record/TextRulerAtom.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/scratchpad') 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); -- cgit v1.2.3