From a3697b8d822384bda4ef771fc9228e4143c49e33 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 4 Jun 2004 16:03:36 +0000 Subject: [PATCH] newPrototypes hashset is never used. Print stack trace if debug is enabled. --- src/helma/framework/core/ZippedAppFile.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/helma/framework/core/ZippedAppFile.java b/src/helma/framework/core/ZippedAppFile.java index 49ef0068..e887943b 100644 --- a/src/helma/framework/core/ZippedAppFile.java +++ b/src/helma/framework/core/ZippedAppFile.java @@ -63,10 +63,6 @@ public class ZippedAppFile implements Updatable { } else { ZipFile zip = null; - // collect created protos - we need this to check DbMappings for each created - // prototype afterwards - HashSet newPrototypes = new HashSet(); - try { lastmod = file.lastModified(); @@ -98,7 +94,6 @@ public class ZippedAppFile implements Updatable { if (proto == null) { proto = app.typemgr.createPrototype(dir, null); - newPrototypes.add(proto); } if (fname.endsWith(".hac")) { @@ -157,6 +152,9 @@ public class ZippedAppFile implements Updatable { } } catch (Throwable x) { System.err.println("Error updating ZipFile: " + x); + if (app.debug) { + x.printStackTrace(); + } } finally { try { zip.close();