aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/eventfilesystem
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2016-03-21 00:14:21 +0000
committerAndreas Beeker <kiwiwings@apache.org>2016-03-21 00:14:21 +0000
commitfe653de0e656256db8bcbef399116d598355b5bc (patch)
tree2b934b78fea768a14dcc54e537260e89f5aebaf6 /src/java/org/apache/poi/poifs/eventfilesystem
parente826364ac22efb471eb0f720040a438cabf00027 (diff)
downloadpoi-fe653de0e656256db8bcbef399116d598355b5bc.tar.gz
poi-fe653de0e656256db8bcbef399116d598355b5bc.zip
fix eclipse warnings
close resources git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735912 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs/eventfilesystem')
-rw-r--r--src/java/org/apache/poi/poifs/eventfilesystem/POIFSReader.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReader.java b/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReader.java
index a288709185..439f47e761 100644
--- a/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReader.java
+++ b/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReader.java
@@ -212,13 +212,13 @@ public class POIFSReader
private void processProperties(final BlockList small_blocks,
final BlockList big_blocks,
- final Iterator properties,
+ final Iterator<Property> properties,
final POIFSDocumentPath path)
throws IOException
{
while (properties.hasNext())
{
- Property property = ( Property ) properties.next();
+ Property property = properties.next();
String name = property.getName();
if (property.isDirectory())
@@ -235,8 +235,8 @@ public class POIFSReader
}
else
{
- int startBlock = property.getStartBlock();
- Iterator listeners = registry.getListeners(path, name);
+ int startBlock = property.getStartBlock();
+ Iterator<POIFSReaderListener> listeners = registry.getListeners(path, name);
if (listeners.hasNext())
{
@@ -257,8 +257,7 @@ public class POIFSReader
}
while (listeners.hasNext())
{
- POIFSReaderListener listener =
- ( POIFSReaderListener ) listeners.next();
+ POIFSReaderListener listener = listeners.next();
listener.processPOIFSReaderEvent(
new POIFSReaderEvent(
@@ -303,6 +302,7 @@ public class POIFSReader
public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{
+ @SuppressWarnings("resource")
DocumentInputStream istream = event.getStream();
POIFSDocumentPath path = event.getPath();
String name = event.getName();