diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-05-21 17:30:43 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-05-21 17:41:08 +0200 |
commit | db30e4ece39c2dfd0c41b4d9eb612d5b494afd18 (patch) | |
tree | 759cefdab7022de255290fc0264334b276571100 /sonar-batch | |
parent | a27d5efd0aa3ce834ee20bccd5044c3c36a3467a (diff) | |
download | sonarqube-db30e4ece39c2dfd0c41b4d9eb612d5b494afd18.tar.gz sonarqube-db30e4ece39c2dfd0c41b4d9eb612d5b494afd18.zip |
SONAR-6259 Use component caches to get id or uuid
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java index 2398ec25434..8e4dc077f48 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java @@ -31,10 +31,11 @@ import org.sonar.batch.index.BatchComponent; import org.sonar.batch.index.BatchComponentCache; import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.Constants.ComponentLinkType; -import org.sonar.batch.protocol.output.*; +import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReport.Component.Builder; import org.sonar.batch.protocol.output.BatchReport.ComponentLink; import org.sonar.batch.protocol.output.BatchReport.Event; +import org.sonar.batch.protocol.output.BatchReportWriter; import javax.annotation.CheckForNull; @@ -74,10 +75,6 @@ public class ComponentsPublisher implements ReportPublisherStep { // protocol buffers does not accept null values - String uuid = r.getUuid(); - if (uuid != null) { - builder.setUuid(uuid); - } Integer sid = batchResource.snapshotId(); if (sid != null) { builder.setSnapshotId(sid); |