aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce-common
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2023-07-06 16:18:13 +0200
committersonartech <sonartech@sonarsource.com>2023-07-17 20:03:45 +0000
commit1ade7f5774b98e129d2a79e6adf7450861e5ba9e (patch)
tree7e3c3f403abed0aef6d2d1ed9273bc250601109b /server/sonar-ce-common
parentb3b0e8a33f1ce672b54e75c7e14e4b708285e64f (diff)
downloadsonarqube-1ade7f5774b98e129d2a79e6adf7450861e5ba9e.tar.gz
sonarqube-1ade7f5774b98e129d2a79e6adf7450861e5ba9e.zip
NO-JIRA replace MoreCollectors.toSet(size) with Collectors.toSet
Diffstat (limited to 'server/sonar-ce-common')
-rw-r--r--server/sonar-ce-common/src/main/java/org/sonar/ce/queue/CeQueueImpl.java4
1 files changed, 2 insertions, 2 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 3ec3c21e114..999236c83df 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
@@ -164,7 +164,7 @@ public class CeQueueImpl implements CeQueue {
.filter(Optional::isPresent)
.map(Optional::get)
.map(CeTaskSubmit.Component::getEntityUuid)
- .collect(MoreCollectors.toSet(submissions.size()));
+ .collect(Collectors.toSet());
if (mainComponentUuids.isEmpty()) {
return t -> true;
}
@@ -236,7 +236,7 @@ public class CeQueueImpl implements CeQueue {
// load characteristics
// TODO could be avoided, characteristics are already present in submissions
- Set<String> taskUuids = dtos.stream().map(CeQueueDto::getUuid).collect(MoreCollectors.toSet(dtos.size()));
+ Set<String> taskUuids = dtos.stream().map(CeQueueDto::getUuid).collect(Collectors.toSet());
Multimap<String, CeTaskCharacteristicDto> characteristicsByTaskUuid = dbClient.ceTaskCharacteristicsDao()
.selectByTaskUuids(dbSession, taskUuids).stream()
.collect(MoreCollectors.index(CeTaskCharacteristicDto::getTaskUuid));