poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1647325 - in /poi/trunk/src: java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
Date Mon, 22 Dec 2014 14:56:48 GMT
Author: centic
Date: Mon Dec 22 14:56:47 2014
New Revision: 1647325

URL: http://svn.apache.org/r1647325
Log:
Fix two Eclipse warnings

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java?rev=1647325&r1=1647324&r2=1647325&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java Mon Dec 22 14:56:47
2014
@@ -22,6 +22,7 @@ import java.util.Iterator;
 import org.apache.poi.hssf.model.InternalWorkbook;
 import org.apache.poi.hssf.record.LabelSSTRecord;
 import org.apache.poi.hssf.record.common.UnicodeString;
+import org.apache.poi.hssf.record.common.UnicodeString.FormatRun;
 import org.apache.poi.ss.usermodel.Font;
 import org.apache.poi.ss.usermodel.RichTextString;
 /**
@@ -147,10 +148,10 @@ public final class HSSFRichTextString im
 
         //Need to clear the current formatting between the startIndex and endIndex
         _string = cloneStringIfRequired();
-        Iterator formatting = _string.formatIterator();
+        Iterator<FormatRun> formatting = _string.formatIterator();
         if (formatting != null) {
           while (formatting.hasNext()) {
-            UnicodeString.FormatRun r = (UnicodeString.FormatRun)formatting.next();
+            UnicodeString.FormatRun r = formatting.next();
             if ((r.getCharacterPos() >= startIndex) && (r.getCharacterPos() <
endIndex))
               formatting.remove();
           }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java?rev=1647325&r1=1647324&r2=1647325&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java Mon Dec 22 14:56:47
2014
@@ -18,7 +18,6 @@
 package org.apache.poi.xssf.usermodel;
 
 import java.util.Iterator;
-import java.util.Map;
 import java.util.TreeMap;
 
 import org.apache.poi.ss.SpreadsheetVersion;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message