aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver/src
diff options
context:
space:
mode:
authorIsmail Cherri <ismail.cherri@sonarsource.com>2024-10-09 15:20:46 +0200
committersonartech <sonartech@sonarsource.com>2024-10-16 20:02:59 +0000
commit3fedddcd21bfff1bff8e2eb25f34f110b803aa48 (patch)
tree6e7e9a253f80a8c955f462a49d6b6aa16dc85673 /server/sonar-webserver/src
parentc8d599a0ee672ee5e7c5db2d88cb1b6482d65db7 (diff)
downloadsonarqube-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.java2
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()));
}
}