Author: maxcom
Date: Wed Jul  7 10:42:23 2010
New Revision: 961343

URL: http://svn.apache.org/viewvc?rev=961343&view=rev
Log:
HWPFDocument: minor cleanup

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java?rev=961343&r1=961342&r2=961343&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java 
(original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java Wed Jul  
7 10:42:23 2010
@@ -280,8 +280,7 @@ public final class HWPFDocument extends 
    */
   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);
   }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to