diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2014-02-21 14:32:39 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2014-02-25 19:00:03 +0100 |
commit | 7d241801b9a01fbaaebe7209efadabb905aab8d1 (patch) | |
tree | 31840c0bba564143de2165701e04bf137c789b5a /sonar-plugin-api/src/main/java/org/sonar | |
parent | 782c0fa8124eef4e806bad803cf24ea3c2bd9b5c (diff) | |
download | sonarqube-7d241801b9a01fbaaebe7209efadabb905aab8d1.tar.gz sonarqube-7d241801b9a01fbaaebe7209efadabb905aab8d1.zip |
SONAR-4996 Update debt on measures sqale_index
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java | 2 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java | 11 |
2 files changed, 3 insertions, 10 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java index a6b5b38c76a..4693a229fb2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java @@ -2130,7 +2130,7 @@ public final class CoreMetrics { /** * @since 4.0 */ - public static final Metric TECHNICAL_DEBT = new Metric.Builder(TECHNICAL_DEBT_KEY, "Technical Debt", Metric.ValueType.FLOAT) + public static final Metric TECHNICAL_DEBT = new Metric.Builder(TECHNICAL_DEBT_KEY, "Technical Debt", Metric.ValueType.WORK_DUR) .setDomain(DOMAIN_TECHNICAL_DEBT) .setDirection(Metric.DIRECTION_WORST) .setOptimizedBestValue(true) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java index 5442c2db677..051556e0aee 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java @@ -27,14 +27,7 @@ import org.sonar.api.ServerExtension; import org.sonar.api.batch.InstantiationStrategy; import javax.annotation.Nullable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.Transient; +import javax.persistence.*; /** * This class represents the definition of a metric in Sonar. @@ -60,7 +53,7 @@ public class Metric implements ServerExtension, BatchExtension { public static final int DIRECTION_NONE = 0; public enum ValueType { - INT, FLOAT, PERCENT, BOOL, STRING, MILLISEC, DATA, LEVEL, DISTRIB, RATING + INT, FLOAT, PERCENT, BOOL, STRING, MILLISEC, DATA, LEVEL, DISTRIB, RATING, WORK_DUR } public enum Level { |