aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-06-18 10:10:36 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-06-18 16:26:00 +0200
commitf3ce69889f1a33e07d81ba20e052eebe599a03bc (patch)
tree6796efe303ada02c43fc0650a8a06362c4ce81a5 /sonar-plugin-api
parent383f66769521484085f7ffe3aea3a6f3878b213e (diff)
downloadsonarqube-f3ce69889f1a33e07d81ba20e052eebe599a03bc.tar.gz
sonarqube-f3ce69889f1a33e07d81ba20e052eebe599a03bc.zip
Try to improve performance of MeasurePersister
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java8
1 files changed, 8 insertions, 0 deletions
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 b6a90add399..170b2c5531b 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
@@ -290,6 +290,14 @@ public class Measure<G extends Serializable> implements Serializable {
}
/**
+ * For internal use
+ */
+ public Measure setRawValue(@Nullable Double v) {
+ this.value = v;
+ return this;
+ }
+
+ /**
* Sets the measure value as an int
*
* @param i the value