aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-12-22 14:56:47 +0000
committerDominik Stadler <centic@apache.org>2014-12-22 14:56:47 +0000
commita9ce953a0f03438dadeb1426b4830745c08fc5df (patch)
tree82999c1fdd4fc85da8466196801ba544b9d5e432 /src/java
parentab66f7cb94185b31883d6ec7e529dfe1d0b62f90 (diff)
downloadpoi-a9ce953a0f03438dadeb1426b4830745c08fc5df.tar.gz
poi-a9ce953a0f03438dadeb1426b4830745c08fc5df.zip
Fix two Eclipse warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1647325 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java b/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
index 76572de746..7898317e8d 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFRichTextString.java
@@ -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 implements Comparable<HSSFRichTextString>,
//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();
}