]> source.dussan.org Git - poi.git/commitdiff
Skip warnings we can't avoid
authorNick Burch <nick@apache.org>
Thu, 7 Jan 2010 12:50:21 +0000 (12:50 +0000)
committerNick Burch <nick@apache.org>
Thu, 7 Jan 2010 12:50:21 +0000 (12:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@896866 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/poifs/dev/POIFSViewable.java
src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java

index 458072834d6b1a4bd851c4307db3ba946173a415..c5d7748e75cdf2eb9eb17d0aeeb0bd1a390e3d5d 100644 (file)
@@ -46,7 +46,7 @@ public interface POIFSViewable
      */
 
     public Object [] getViewableArray();
-
+    
     /**
      * Get an Iterator of objects, some of which may implement
      * POIFSViewable
@@ -54,7 +54,7 @@ public interface POIFSViewable
      * @return an Iterator; may not be null, but may have an empty
      * back end store
      */
-
+    @SuppressWarnings("unchecked")
     public Iterator getViewableIterator();
 
     /**
index 3621637317bba111c16b58a81535580c275b7f70..4d7f6c3fb67cf976a2499965d566248651b71c26 100644 (file)
@@ -410,14 +410,14 @@ public class DirectoryNode
      * @return an Iterator; may not be null, but may have an empty
      * back end store
      */
-
+    @SuppressWarnings("unchecked")
     public Iterator getViewableIterator()
     {
         List components = new ArrayList();
 
         components.add(getProperty());
         SortedMap<String,Entry> sortedEntries = 
-               new TreeMap<String,Entry>(_entries);
+                  new TreeMap<String,Entry>(_entries);
         Iterator<Entry> iter = sortedEntries.values().iterator();
 
         while (iter.hasNext())