1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-25 06:22:11 +03:00

ZipFile and Socket are not Closable in java 1.6

This commit is contained in:
Federico Fissore
2015-05-22 09:21:07 +02:00
parent 181211eb40
commit 76c5d99123
2 changed files with 14 additions and 4 deletions

View File

@ -966,7 +966,13 @@ public class Editor extends JFrame implements RunnerListener {
//System.err.println("Ignoring " + filename + " (" + e.getMessage() + ")");
e.printStackTrace();
} finally {
IOUtils.closeQuietly(zipFile);
if (zipFile != null) {
try {
zipFile.close();
} catch (IOException e) {
// noop
}
}
}
return null;
}