]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6732 there should be no static binding but in CeServer.main
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 22 Mar 2016 11:15:32 +0000 (12:15 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 22 Mar 2016 13:24:57 +0000 (14:24 +0100)
server/sonar-ce/src/main/java/org/sonar/ce/app/CeServer.java

index a09765d1d25241606168766a5e63b00283e04fa8..986f957bab7771cafa087441dba94625468f4b9c 100644 (file)
@@ -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);
   }