aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2016-10-14 17:36:53 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2016-10-18 16:00:26 +0200
commitf21abcbb8250053703ce6edc36bfea03bb3665e7 (patch)
tree32522db31a2464c91898fec6eac03eca17effd31 /sonar-plugin-api
parent6bec40f7b12d952e8fb1a1d61b1b5978593be96b (diff)
downloadsonarqube-f21abcbb8250053703ce6edc36bfea03bb3665e7.tar.gz
sonarqube-f21abcbb8250053703ce6edc36bfea03bb3665e7.zip
SONAR-8281 Rework Sensor storage to merge multiple coverage reports
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/sensor/coverage/internal/DefaultCoverage.java1
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java15
2 files changed, 0 insertions, 16 deletions
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<G extends Serializable> 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<G extends Serializable> 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) {