From f21abcbb8250053703ce6edc36bfea03bb3665e7 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 14 Oct 2016 17:36:53 +0200 Subject: SONAR-8281 Rework Sensor storage to merge multiple coverage reports --- .../batch/sensor/coverage/internal/DefaultCoverage.java | 1 - .../src/main/java/org/sonar/api/measures/Measure.java | 15 --------------- 2 files changed, 16 deletions(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java index 96e5f9737ba..bb0090fd8e8 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java @@ -139,7 +139,6 @@ public class DefaultCoverage extends DefaultStorable implements NewCoverage { @Override public void doSave() { validateFile(); - Preconditions.checkNotNull(type, "Call ofType() first"); storage.store(this); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java index 06b0e1a889e..9700220b47f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java @@ -63,7 +63,6 @@ public class Measure implements Serializable { protected String url; protected Integer personId; protected PersistenceMode persistenceMode = PersistenceMode.FULL; - private boolean fromCore; public Measure(String metricKey) { this.metricKey = metricKey; @@ -640,20 +639,6 @@ public class Measure implements Serializable { && isZeroVariation(variation1, variation2, variation3, variation4, variation5); } - /** - * For internal use - */ - public boolean isFromCore() { - return fromCore; - } - - /** - * For internal use - */ - public void setFromCore(boolean fromCore) { - this.fromCore = fromCore; - } - private static boolean isZeroVariation(Double... variations) { for (Double variation : variations) { if (variation != null && NumberUtils.compare(variation, 0.0) != 0) { -- cgit v1.2.3