} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
- throw new RuntimeException(e);
+ throw new IllegalStateException(e);
}
}
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
- throw new RuntimeException(e);
+ throw new IllegalStateException(e);
}
}
public class Monitor extends Thread implements Terminable {
- private final static Logger LOGGER = LoggerFactory.getLogger(Monitor.class);
+ private static final Logger LOGGER = LoggerFactory.getLogger(Monitor.class);
private static final long PING_DELAY_MS = 3000L;
public abstract class MonitoredProcess implements ProcessMXBean {
- private final static Logger LOGGER = LoggerFactory.getLogger(MonitoredProcess.class);
+ private static final Logger LOGGER = LoggerFactory.getLogger(MonitoredProcess.class);
private static final long AUTOKILL_TIMEOUT_MS = 30000L;
private static final long AUTOKILL_CHECK_DELAY_MS = 2000L;
context.reset();
context.putProperty(PATH_LOGS_PROPERTY, props.of(PATH_LOGS_PROPERTY));
doConfigure(configurator, logbackXmlResource);
- } catch (JoranException je) {
+ } catch (JoranException ignored) {
// StatusPrinter will handle this
}
StatusPrinter.printInCaseOfErrorsOrWarnings(context);