diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-03-16 14:42:36 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-03-16 14:43:13 +0100 |
commit | 77cf76d3531ea6cdd5f7b60808ac00867e902c58 (patch) | |
tree | 6c14d6c99c1ebcd17631f1e709ceae1f7b705d3b /server/sonar-process-monitor | |
parent | 24998ec360f43a7a745d88a5856d5828ba2d11ad (diff) | |
download | sonarqube-77cf76d3531ea6cdd5f7b60808ac00867e902c58.tar.gz sonarqube-77cf76d3531ea6cdd5f7b60808ac00867e902c58.zip |
Fix Quality flaws
RuntimeException already triggers terminate()
in tryToStartProcess().
Diffstat (limited to 'server/sonar-process-monitor')
-rw-r--r-- | server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java b/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java index 200127f8da1..5012a3df1f5 100644 --- a/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java +++ b/server/sonar-process-monitor/src/main/java/org/sonar/application/SchedulerImpl.java @@ -97,13 +97,9 @@ public class SchedulerImpl implements Scheduler, ProcessEventListener, ProcessLi } private void tryToStartAll() { - try { - tryToStartEs(); - tryToStartWeb(); - tryToStartCe(); - } catch (RuntimeException e) { - terminate(); - } + tryToStartEs(); + tryToStartWeb(); + tryToStartCe(); } private void tryToStartEs() { |