diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 798d2bdb4..385688fe0 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -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; } diff --git a/arduino-core/src/processing/app/helpers/NetUtils.java b/arduino-core/src/processing/app/helpers/NetUtils.java index e482e5247..17dc52c86 100644 --- a/arduino-core/src/processing/app/helpers/NetUtils.java +++ b/arduino-core/src/processing/app/helpers/NetUtils.java @@ -1,7 +1,5 @@ package processing.app.helpers; -import org.apache.commons.compress.utils.IOUtils; - import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; @@ -45,7 +43,13 @@ public abstract class NetUtils { } catch (IOException e) { return false; } finally { - IOUtils.closeQuietly(socket); + if (socket != null) { + try { + socket.close(); + } catch (IOException e) { + // noop + } + } } } }