mirror of https://github.com/apache/poi.git
HWPFDocument: minor cleanup
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@961343 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7c62aae58
commit
870bef12f1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue