diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-19 15:31:17 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-19 15:31:17 +0000 |
commit | db2c24f023c8ab6dfbd473269086c61847720dea (patch) | |
tree | fa8fd798d45d06ed90b8034baff8dc7cb017a6f9 /sonar-plugin-api | |
parent | 0398bddbda6f6c75d1feacd73e7f66c56cfed2c9 (diff) | |
download | sonarqube-db2c24f023c8ab6dfbd473269086c61847720dea.tar.gz sonarqube-db2c24f023c8ab6dfbd473269086c61847720dea.zip |
SONAR-1830 new metric type 'rating'
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java | 5 |
1 files changed, 3 insertions, 2 deletions
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 27dcf62e07a..87ff5bd61dc 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 @@ -47,7 +47,7 @@ public class Metric extends BaseIdentifiable implements ServerExtension, BatchEx public final static int DIRECTION_NONE = 0; public enum ValueType { - INT, FLOAT, PERCENT, BOOL, STRING, MILLISEC, DATA, LEVEL, DISTRIB + INT, FLOAT, PERCENT, BOOL, STRING, MILLISEC, DATA, LEVEL, DISTRIB, RATING } public enum Level { @@ -441,7 +441,8 @@ public class Metric extends BaseIdentifiable implements ServerExtension, BatchEx || ValueType.FLOAT.equals(type) || ValueType.PERCENT.equals(type) || ValueType.BOOL.equals(type) - || ValueType.MILLISEC.equals(type); + || ValueType.MILLISEC.equals(type) + || ValueType.RATING.equals(type); } /** |