diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2016-10-14 17:36:53 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2016-10-18 16:00:26 +0200 |
commit | f21abcbb8250053703ce6edc36bfea03bb3665e7 (patch) | |
tree | 32522db31a2464c91898fec6eac03eca17effd31 /sonar-plugin-api | |
parent | 6bec40f7b12d952e8fb1a1d61b1b5978593be96b (diff) | |
download | sonarqube-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.java | 1 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java | 15 |
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) { |