From: Sébastien Lesaint Date: Tue, 22 Mar 2016 11:15:32 +0000 (+0100) Subject: SONAR-6732 there should be no static binding but in CeServer.main X-Git-Tag: 5.5-M11~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8c6e13559916396668b7ca453213016b951a39e2;p=sonarqube.git SONAR-6732 there should be no static binding but in CeServer.main --- diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java b/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java index a09765d1d25..986f957bab7 100644 --- a/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java +++ b/server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java @@ -62,10 +62,6 @@ public class CeServer implements Monitored { @CheckForNull private CeMainThread ceMainThread = null; - protected CeServer(WebServerWatcher webServerWatcher, ComputeEngine computeEngine) { - this(webServerWatcher, computeEngine, new MinimumViableSystem()); - } - @VisibleForTesting protected CeServer(WebServerWatcher webServerWatcher, ComputeEngine computeEngine, MinimumViableSystem mvs) { this.webServerWatcher = webServerWatcher; @@ -83,7 +79,10 @@ public class CeServer implements Monitored { ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args); Props props = entryPoint.getProps(); new ServerProcessLogging(PROCESS_NAME, LOG_LEVEL_PROPERTY).configure(props); - CeServer server = new CeServer(new WebServerWatcherImpl(entryPoint.getSharedDir()), new ComputeEngineImpl(props, new ComputeEngineContainerImpl())); + CeServer server = new CeServer( + new WebServerWatcherImpl(entryPoint.getSharedDir()), + new ComputeEngineImpl(props, new ComputeEngineContainerImpl()), + new MinimumViableSystem()); entryPoint.launch(server); }