diff options
Diffstat (limited to 'src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java')
-rw-r--r-- | src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java b/src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java index 7f8e14e58c..b9b7a51b5d 100644 --- a/src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java +++ b/src/java/org/apache/poi/poifs/filesystem/DirectoryNode.java @@ -521,10 +521,9 @@ public class DirectoryNode * @return an Iterator; may not be null, but may have an empty * back end store */ - @SuppressWarnings({ "unchecked", "rawtypes" }) - public Iterator getViewableIterator() + public Iterator<Object> getViewableIterator() { - List components = new ArrayList(); + List<Object> components = new ArrayList<Object>(); components.add(getProperty()); Iterator<Entry> iter = _entries.iterator(); |