diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-09-16 15:39:32 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-09-16 15:39:51 +0200 |
commit | 67b33fdcba00e920a2a8be8ed8f5d8bc29b1f9cd (patch) | |
tree | baf7e2647acf4451eb7bd2078a6c226e02564c8b /sonar-plugin-api | |
parent | faea6d4dea2ef625c816ae68e86dbea98aecf86a (diff) | |
download | sonarqube-67b33fdcba00e920a2a8be8ed8f5d8bc29b1f9cd.tar.gz sonarqube-67b33fdcba00e920a2a8be8ed8f5d8bc29b1f9cd.zip |
See SONAR-4643 Deprecate "Depth in Tree" and "Number of Children" design metrics
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java | 18 |
1 files changed, 18 insertions, 0 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 fb3f17575ec..cb4a15aff47 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 @@ -1588,20 +1588,38 @@ public final class CoreMetrics { .setHidden(true) .create(); + /** + * @deprecated since 4.0. See SONAR-4643 + */ + @Deprecated public static final String DEPTH_IN_TREE_KEY = "dit"; + /** + * @deprecated since 4.0. See SONAR-4643 + */ + @Deprecated public static final Metric DEPTH_IN_TREE = new Metric.Builder(DEPTH_IN_TREE_KEY, "Depth in Tree", Metric.ValueType.INT) .setDescription("Depth in Inheritance Tree") .setDirection(Metric.DIRECTION_NONE) .setQualitative(false) .setDomain(DOMAIN_DESIGN) + .setHidden(true) .create(); + /** + * @deprecated since 4.0. See SONAR-4643 + */ + @Deprecated public static final String NUMBER_OF_CHILDREN_KEY = "noc"; + /** + * @deprecated since 4.0. See SONAR-4643 + */ + @Deprecated public static final Metric NUMBER_OF_CHILDREN = new Metric.Builder(NUMBER_OF_CHILDREN_KEY, "Number of Children", Metric.ValueType.INT) .setDescription("Number of Children") .setDirection(Metric.DIRECTION_NONE) .setQualitative(false) .setDomain(DOMAIN_DESIGN) + .setHidden(true) .create(); public static final String RFC_KEY = "rfc"; |