diff options
author | Dominik Stadler <centic@apache.org> | 2014-12-22 14:56:47 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2014-12-22 14:56:47 +0000 |
commit | a9ce953a0f03438dadeb1426b4830745c08fc5df (patch) | |
tree | 82999c1fdd4fc85da8466196801ba544b9d5e432 /src/java | |
parent | ab66f7cb94185b31883d6ec7e529dfe1d0b62f90 (diff) | |
download | poi-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.java | 5 |
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(); } |