diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-11-17 15:14:16 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-11-17 15:14:16 +0100 |
commit | 19988ce90b9b35481ee22b5760d4a5e53aedcd16 (patch) | |
tree | 2e118baff188feebff5cb327eb677334442ff1fb /sonar-db | |
parent | 9f43cd2f7c25c0bbac6a96c36f2629a79bb5bd52 (diff) | |
download | sonarqube-19988ce90b9b35481ee22b5760d4a5e53aedcd16.tar.gz sonarqube-19988ce90b9b35481ee22b5760d4a5e53aedcd16.zip |
SONAR-8391 Fix Quality flaws
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/version/v60/PopulateUuidPathColumnOnProjects.java | 4 |
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; |