From: Maxim Valyanskiy Date: Wed, 7 Jul 2010 10:42:23 +0000 (+0000) Subject: HWPFDocument: minor cleanup X-Git-Tag: REL_3_7_BETA2~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=870bef12f1b05b974953f814a4f2587e6484db97;p=poi.git HWPFDocument: minor cleanup git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@961343 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java index 877075158a..86b0ef2bf5 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java @@ -280,8 +280,7 @@ public final class HWPFDocument extends HWPFDocumentCore */ public Range getOverallRange() { // hack to get the ending cp of the document, Have to revisit this. - java.util.List text = _tpt.getTextPieces(); - PropertyNode p = (PropertyNode)text.get(text.size() - 1); + PropertyNode p = _tpt.getTextPieces().get(_tpt.getTextPieces().size() - 1); return new Range(0, p.getEnd(), this); }