From db30e4ece39c2dfd0c41b4d9eb612d5b494afd18 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 21 May 2015 17:30:43 +0200 Subject: SONAR-6259 Use component caches to get id or uuid --- .../src/main/java/org/sonar/batch/report/ComponentsPublisher.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sonar-batch') 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); -- cgit v1.2.3