aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-task-projectanalysis/src
diff options
context:
space:
mode:
authorEric Giffon <eric.giffon@sonarsource.com>2024-05-16 16:08:02 +0200
committersonartech <sonartech@sonarsource.com>2024-05-16 20:02:38 +0000
commit7f7f7897ac9376984014e31d113408603b2cb149 (patch)
treec5183b498b79898a07e497c0340435247f34ac74 /server/sonar-ce-task-projectanalysis/src
parent29553befc1b81f3a45e81fd92fd45f3a2d91f48b (diff)
downloadsonarqube-7f7f7897ac9376984014e31d113408603b2cb149.tar.gz
sonarqube-7f7f7897ac9376984014e31d113408603b2cb149.zip
SONAR-22246 Cleanup SQL query for the ncloc of biggest branch
Diffstat (limited to 'server/sonar-ce-task-projectanalysis/src')
-rw-r--r--server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ProjectNclocComputationStep.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ProjectNclocComputationStep.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ProjectNclocComputationStep.java
index 92337e49b29..d309938cb68 100644
--- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ProjectNclocComputationStep.java
+++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/ProjectNclocComputationStep.java
@@ -38,7 +38,7 @@ public class ProjectNclocComputationStep implements ComputationStep {
public void execute(Context context) {
try (DbSession dbSession = dbClient.openSession(false)) {
String projectUuid = analysisMetadataHolder.getProject().getUuid();
- long maxncloc = dbClient.liveMeasureDao().sumNclocOfBiggestBranchForProject(dbSession, projectUuid);
+ long maxncloc = dbClient.liveMeasureDao().findNclocOfBiggestBranchForProject(dbSession, projectUuid);
dbClient.projectDao().updateNcloc(dbSession, projectUuid, maxncloc);
dbSession.commit();
}