private void _cleanUpShutdownTimer(List<Throwable> errors) { LOGGER.log(Level.FINE, "Shutting down timer"); try { Timer.shutdown(); } catch (SecurityException e) { LOGGER.log(WARNING, "Not permitted to shut down Timer", e); errors.add(e); } catch (OutOfMemoryError e) { // we should just propagate this, no point trying to log throw e; } catch (LinkageError e) { LOGGER.log(SEVERE, "Failed to shut down Timer", e); // safe to ignore and continue for this one } catch (Throwable e) { LOGGER.log(SEVERE, "Failed to shut down Timer", e); // save for later errors.add(e); } }
private void _cleanUpShutdownTimer(List<Throwable> errors) { LOGGER.log(Level.FINE, "Shutting down timer"); try { Timer.shutdown(); } catch (SecurityException e) { LOGGER.log(WARNING, "Not permitted to shut down Timer", e); errors.add(e); } catch (OutOfMemoryError e) { // we should just propagate this, no point trying to log throw e; } catch (LinkageError e) { LOGGER.log(SEVERE, "Failed to shut down Timer", e); // safe to ignore and continue for this one } catch (Throwable e) { LOGGER.log(SEVERE, "Failed to shut down Timer", e); // save for later errors.add(e); } }