From d08dba2aee27acfd15693942fd5bf4b6c1ca9dbe Mon Sep 17 00:00:00 2001 From: Anita Stanisz <106669481+anita-stanisz-sonarsource@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:13:03 +0100 Subject: SONAR-23893 Inject different AiCodeAssuranceVerifier impl depending on edition --- .../java/org/sonar/server/platform/platformlevel/PlatformLevel4.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/sonar-webserver/src/main/java/org/sonar') diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java index 3332d79743d..cb6b4828d40 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java @@ -60,6 +60,7 @@ import org.sonar.core.platform.PlatformEditionProvider; import org.sonar.core.platform.SpringComponentContainer; import org.sonar.server.ai.code.assurance.AiCodeAssuranceEntitlement; import org.sonar.server.ai.code.assurance.AiCodeAssuranceVerifier; +import org.sonar.server.ai.code.assurance.NoOpAiCodeAssuranceVerifier; import org.sonar.server.almintegration.ws.AlmIntegrationsWSModule; import org.sonar.server.almintegration.ws.CredentialsEncoderHelper; import org.sonar.server.almintegration.ws.ImportHelper; @@ -348,7 +349,7 @@ public class PlatformLevel4 extends PlatformLevel { DelegatingDevOpsProjectCreatorFactory.class, // ai code assurance - AiCodeAssuranceVerifier.class, + NoOpAiCodeAssuranceVerifier.class, AiCodeAssuranceEntitlement.class, // batch -- cgit v1.2.3