From: Julien Lancelot Date: Tue, 4 Feb 2014 14:47:48 +0000 (+0100) Subject: SONAR-5042 Deprecate RFC metric X-Git-Tag: 4.2~267 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aa91ac0717e337019c98f5801590f5aaf6db3d93;p=sonarqube.git SONAR-5042 Deprecate RFC metric --- 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 56b169000e0..a6b5b38c76a 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 @@ -1669,22 +1669,42 @@ public final class CoreMetrics { .setHidden(true) .create(); + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final String RFC_KEY = "rfc"; + + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final Metric RFC = new Metric.Builder(RFC_KEY, "RFC", Metric.ValueType.INT) .setDescription("Response for Class") .setDirection(Metric.DIRECTION_WORST) .setQualitative(false) .setDomain(DOMAIN_DESIGN) .setFormula(new WeightedMeanAggregationFormula(CoreMetrics.FILES, false)) + .setHidden(true) .create(); + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final String RFC_DISTRIBUTION_KEY = "rfc_distribution"; + + /** + * @deprecated since 4.2. See SONAR-5042 + */ + @Deprecated public static final Metric RFC_DISTRIBUTION = new Metric.Builder(RFC_DISTRIBUTION_KEY, "Class distribution /RFC", Metric.ValueType.DISTRIB) .setDescription("Class distribution /RFC") .setDirection(Metric.DIRECTION_NONE) .setQualitative(true) .setDomain(DOMAIN_DESIGN) .setFormula(new SumChildDistributionFormula().setMinimumScopeToPersist(Scopes.DIRECTORY)) + .setHidden(true) .create(); /**