aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-common
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2023-01-12 15:07:29 +0100
committersonartech <sonartech@sonarsource.com>2023-01-13 20:02:46 +0000
commitb6cb156530b5012f589d097fbbe84b855391accc (patch)
treef2e9484644bef2e38c29712da190875863346cb5 /server/sonar-ce-common
parentc9aa7b5f35066a7c2e3583eb679062d142977beb (diff)
downloadsonarqube-b6cb156530b5012f589d097fbbe84b855391accc.tar.gz
sonarqube-b6cb156530b5012f589d097fbbe84b855391accc.zip
[NO-JIRA] explicitly declare toList collector mutable or not
Diffstat (limited to 'server/sonar-ce-common')
-rw-r--r--server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java b/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java
index fe7fdd6179a..b124b509c02 100644
--- a/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java
+++ b/server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java
@@ -138,7 +138,7 @@ public class CeQueueImpl implements CeQueue {
List<CeQueueDto> taskDtos = submissions.stream()
.filter(filterBySubmitOptions(options, submissions, dbSession))
.map(submission -> addToQueueInDb(dbSession, submission))
- .collect(Collectors.toList());
+ .toList();
List<CeTask> tasks = loadTasks(dbSession, taskDtos);
dbSession.commit();
return tasks;