aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-db/src/main/java/org/sonar/db/version/v60/PopulateUuidPathColumnOnProjects.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/version/v60/PopulateUuidPathColumnOnProjects.java b/sonar-db/src/main/java/org/sonar/db/version/v60/PopulateUuidPathColumnOnProjects.java
index 13efc5f4684..d497b9ebc8d 100644
--- a/sonar-db/src/main/java/org/sonar/db/version/v60/PopulateUuidPathColumnOnProjects.java
+++ b/sonar-db/src/main/java/org/sonar/db/version/v60/PopulateUuidPathColumnOnProjects.java
@@ -118,10 +118,10 @@ public class PopulateUuidPathColumnOnProjects extends BaseDataChange {
}
List<String> componentUuidPath = Arrays.stream(snapshot.snapshotPath)
- .mapToObj(snapshotId -> relations.snapshotsById.get(snapshotId))
+ .mapToObj(relations.snapshotsById::get)
.filter(Objects::nonNull)
.map(s -> s.componentUuid)
- .collect(toCollection(() -> new ArrayList<>()));
+ .collect(toCollection(ArrayList::new));
if (componentUuidPath.size() != snapshot.snapshotPath.length) {
LOG.trace("Some component UUIDs not found for snapshots [{}]", snapshot.snapshotPath);
return false;