From: Aurelien Poscia Date: Wed, 22 Feb 2023 11:16:16 +0000 (+0100) Subject: SONAR-18484 fix startup of Web API v2 in DCE mode X-Git-Tag: 10.0.0.68432~207 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8149a182aa58f730475c3e57f1c35b0a3ff321d3;p=sonarqube.git SONAR-18484 fix startup of Web API v2 in DCE mode --- diff --git a/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/config/PlatformLevel4WebConfig.java b/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/config/PlatformLevel4WebConfig.java index 79d5a93f62d..60b82f70862 100644 --- a/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/config/PlatformLevel4WebConfig.java +++ b/server/sonar-webserver-webapi-v2/src/main/java/org/sonar/server/v2/config/PlatformLevel4WebConfig.java @@ -19,6 +19,7 @@ */ package org.sonar.server.v2.config; +import javax.annotation.Nullable; import org.sonar.server.health.CeStatusNodeCheck; import org.sonar.server.health.DbConnectionNodeCheck; import org.sonar.server.health.EsStatusNodeCheck; @@ -42,7 +43,7 @@ public class PlatformLevel4WebConfig { @Bean public LivenessChecker livenessChecker(DbConnectionNodeCheck dbConnectionNodeCheck, WebServerStatusNodeCheck webServerStatusNodeCheck, CeStatusNodeCheck ceStatusNodeCheck, - EsStatusNodeCheck esStatusNodeCheck) { + @Nullable EsStatusNodeCheck esStatusNodeCheck) { return new LivenessCheckerImpl(dbConnectionNodeCheck, webServerStatusNodeCheck, ceStatusNodeCheck, esStatusNodeCheck); }