newPrototypes hashset is never used. Print stack trace if debug is enabled.
This commit is contained in:
parent
da7ba1dc51
commit
a3697b8d82
1 changed files with 3 additions and 5 deletions
|
@ -63,10 +63,6 @@ public class ZippedAppFile implements Updatable {
|
||||||
} else {
|
} else {
|
||||||
ZipFile zip = null;
|
ZipFile zip = null;
|
||||||
|
|
||||||
// collect created protos - we need this to check DbMappings for each created
|
|
||||||
// prototype afterwards
|
|
||||||
HashSet newPrototypes = new HashSet();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
lastmod = file.lastModified();
|
lastmod = file.lastModified();
|
||||||
|
|
||||||
|
@ -98,7 +94,6 @@ public class ZippedAppFile implements Updatable {
|
||||||
|
|
||||||
if (proto == null) {
|
if (proto == null) {
|
||||||
proto = app.typemgr.createPrototype(dir, null);
|
proto = app.typemgr.createPrototype(dir, null);
|
||||||
newPrototypes.add(proto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fname.endsWith(".hac")) {
|
if (fname.endsWith(".hac")) {
|
||||||
|
@ -157,6 +152,9 @@ public class ZippedAppFile implements Updatable {
|
||||||
}
|
}
|
||||||
} catch (Throwable x) {
|
} catch (Throwable x) {
|
||||||
System.err.println("Error updating ZipFile: " + x);
|
System.err.println("Error updating ZipFile: " + x);
|
||||||
|
if (app.debug) {
|
||||||
|
x.printStackTrace();
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
zip.close();
|
zip.close();
|
||||||
|
|
Loading…
Add table
Reference in a new issue