diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-12 14:20:54 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-12 14:29:20 +0200 |
commit | e17cf1c2dc52256336c388c5dc4bde3087c13c1c (patch) | |
tree | 37d71b5d2c711c99adfd0181618705b0558eccf0 /sonar-batch | |
parent | 0ace9fe008ae66ca0899827556f1d45fdfeb18c5 (diff) | |
download | sonarqube-e17cf1c2dc52256336c388c5dc4bde3087c13c1c.tar.gz sonarqube-e17cf1c2dc52256336c388c5dc4bde3087c13c1c.zip |
SONAR-6637 Stop filling db column PROJECT_MEASURES.RULE_PRIORITY
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java index 07c53cad1f1..262f6780fb3 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/MeasuresPublisher.java @@ -23,26 +23,24 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.collect.Iterables; -import org.sonar.api.measures.*; +import java.io.Serializable; +import javax.annotation.Nullable; +import org.sonar.api.measures.Measure; import org.sonar.api.measures.Metric.Level; import org.sonar.api.measures.Metric.ValueType; +import org.sonar.api.measures.MetricFinder; +import org.sonar.api.measures.RuleMeasure; import org.sonar.api.resources.Resource; import org.sonar.api.resources.ResourceUtils; import org.sonar.api.rule.RuleKey; -import org.sonar.api.rules.RulePriority; import org.sonar.api.technicaldebt.batch.Characteristic; import org.sonar.batch.index.BatchComponent; import org.sonar.batch.index.BatchComponentCache; -import org.sonar.batch.protocol.Constants; import org.sonar.batch.protocol.Constants.MeasureValueType; import org.sonar.batch.protocol.output.BatchReport; import org.sonar.batch.protocol.output.BatchReportWriter; import org.sonar.batch.scan.measure.MeasureCache; -import javax.annotation.Nullable; - -import java.io.Serializable; - public class MeasuresPublisher implements ReportPublisherStep { private final BatchComponentCache resourceCache; @@ -120,10 +118,6 @@ public class MeasuresPublisher implements ReportPublisherStep { if (ruleKey != null) { builder.setRuleKey(ruleKey.toString()); } - RulePriority severity = ruleMeasure.getSeverity(); - if (severity != null) { - builder.setSeverity(Constants.Severity.valueOf(severity.toString())); - } } Level alertStatus = measure.getAlertStatus(); if (alertStatus != null) { |