protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
@Override protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
private static IOException cleanupAndThrow(Protocol p, IOException ife) { try { p.quit(); } catch (Throwable thr) { if (isRecoverable(thr)) { ife.addSuppressed(thr); } else { thr.addSuppressed(ife); if (thr instanceof Error) { throw (Error) thr; } if (thr instanceof RuntimeException) { throw (RuntimeException) thr; } throw new RuntimeException("unexpected exception", thr); } } return ife; }
synchronized void close(boolean force) throws MessagingException { try { if (port != null) { if (force) port.close(); else port.quit(); } } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
synchronized void close(boolean force) throws MessagingException { try { if (port != null) { if (force) port.close(); else port.quit(); } } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
logger.fine("STLS required but failed"); try { p.quit(); } catch (IOException ioex) { } finally { logger.fine("STLS required but not supported"); try { p.quit(); } catch (IOException ioex) { } finally { if ((msg = p.login(user, passwd)) != null) { try { p.quit(); } catch (IOException ioex) { } finally {
@Override protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
@Override protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
protected void finalize() throws Throwable { super.finalize(); if (socket != null) { // Forgot to logout ?! quit(); } }
@Override protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
@Override protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
protected void finalize() throws Throwable { super.finalize(); if (socket != null) { // Forgot to logout ?! quit(); } }
@Override protected void finalize() throws Throwable { try { if (socket != null) // Forgot to logout ?! quit(); } finally { super.finalize(); } }
try { if (port != null) port.quit(); } catch (IOException ioex2) {
try { if (port != null) port.quit(); } catch (IOException ioex2) {
port.close(); else port.quit(); } catch (IOException ex) {
port.close(); else port.quit(); } catch (IOException ex) {
public synchronized void close() throws MessagingException { try { if (port != null) port.quit(); } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
public synchronized void close() throws MessagingException { try { if (port != null) port.quit(); } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }
synchronized void close(boolean force) throws MessagingException { try { if (port != null) { if (force) port.close(); else port.quit(); } } catch (IOException ioex) { } finally { port = null; // to set the state and send the closed connection event super.close(); } }