diff options
author | Ismail Cherri <ismail.cherri@sonarsource.com> | 2024-10-09 15:20:46 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-16 20:02:59 +0000 |
commit | 3fedddcd21bfff1bff8e2eb25f34f110b803aa48 (patch) | |
tree | 6e7e9a253f80a8c955f462a49d6b6aa16dc85673 /server/sonar-webserver/src | |
parent | c8d599a0ee672ee5e7c5db2d88cb1b6482d65db7 (diff) | |
download | sonarqube-3fedddcd21bfff1bff8e2eb25f34f110b803aa48.tar.gz sonarqube-3fedddcd21bfff1bff8e2eb25f34f110b803aa48.zip |
SONAR-23194 Project overview adopts MQR mode
Diffstat (limited to 'server/sonar-webserver/src')
-rw-r--r-- | server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryMQRModePropertyProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryMQRModePropertyProvider.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryMQRModePropertyProvider.java index ed1e6ab34fe..b827a02f278 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryMQRModePropertyProvider.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryMQRModePropertyProvider.java @@ -62,6 +62,6 @@ public class TelemetryMQRModePropertyProvider implements TelemetryDataProvider<B @Override public Optional<Boolean> getValue() { PropertyDto property = dbClient.propertiesDao().selectGlobalProperty(MULTI_QUALITY_MODE_ENABLED); - return Optional.of(property != null && Boolean.parseBoolean(property.getValue())); + return property == null ? Optional.of(true) : Optional.of(Boolean.valueOf(property.getValue())); } } |