From fe653de0e656256db8bcbef399116d598355b5bc Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Mon, 21 Mar 2016 00:14:21 +0000 Subject: fix eclipse warnings close resources git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735912 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/poifs/eventfilesystem/POIFSReader.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/java/org/apache/poi/poifs/eventfilesystem') 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 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 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(); -- cgit v1.2.3