private static void close(String modulePath, Module module) { if (module == null) { return; } LOG.info("close", "close pkcs11 module: {}", modulePath); try { module.finalize(null); } catch (Throwable th) { LogUtil.error(LOG, th, "could not close module " + modulePath); } } }
private static void close(final String modulePath, final Module module) { if (module == null) { return; } LOG.info("close", "close pkcs11 module: {}", modulePath); try { module.finalize(null); } catch (Throwable th) { LogUtil.error(LOG, th, "could not close module " + modulePath); } } }