poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max...@apache.org
Subject svn commit: r961343 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/HWPFDocument.java
Date Wed, 07 Jul 2010 10:42:24 GMT
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


Mime
View raw message