From 8c6e13559916396668b7ca453213016b951a39e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Tue, 22 Mar 2016 12:15:32 +0100 Subject: [PATCH] SONAR-6732 there should be no static binding but in CeServer.main --- .../src/main/java/org/sonar/ce/app/CeServer.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); } -- 2.39.5