[jboss-cvs] JBossAS SVN: r73832 - projects/jboss-deployers/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/deployer/facelets/support.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri May 30 05:58:02 EDT 2008
Author: alesj
Date: 2008-05-30 05:58:02 -0400 (Fri, 30 May 2008)
New Revision: 73832
Modified:
projects/jboss-deployers/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/deployer/facelets/support/Classpath.java
Log:
Close zis in finally.
Modified: projects/jboss-deployers/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/deployer/facelets/support/Classpath.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/deployer/facelets/support/Classpath.java 2008-05-30 09:46:49 UTC (rev 73831)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/deployer/facelets/support/Classpath.java 2008-05-30 09:58:02 UTC (rev 73832)
@@ -134,20 +134,28 @@
zis = (ZipInputStream)is;
else
zis = new ZipInputStream(is);
- ZipEntry entry = zis.getNextEntry();
- // initial entry should not be null
- // if we assume this is some inner jar
- done = (entry != null);
- while (entry != null)
+
+ try
{
- String entryName = entry.getName();
- if (entryName.endsWith(suffix))
+ ZipEntry entry = zis.getNextEntry();
+ // initial entry should not be null
+ // if we assume this is some inner jar
+ done = (entry != null);
+ while (entry != null)
{
- String urlString = url.toExternalForm();
- result.add(new URL(urlString + entryName));
+ String entryName = entry.getName();
+ if (entryName.endsWith(suffix))
+ {
+ String urlString = url.toExternalForm();
+ result.add(new URL(urlString + entryName));
+ }
+ entry = zis.getNextEntry();
}
- entry = zis.getNextEntry();
}
+ finally
+ {
+ zis.close();
+ }
}
catch (Exception ignore)
{
More information about the jboss-cvs-commits
mailing list