You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ma...@apache.org on 2010/07/07 12:42:24 UTC

svn commit: r961343 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java

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: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org