From e9e7e68e3c2e799c7a1601b26b94b04b309171ab Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 12 Mar 2014 09:04:23 +0100 Subject: [PATCH] SONAR-5124 The "Weighted Issues" metric should not be deprecated anymore --- .../plugins/core/issue/WeightedIssuesDecorator.java | 2 +- .../main/java/org/sonar/api/measures/CoreMetrics.java | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/WeightedIssuesDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/WeightedIssuesDecorator.java index 64f8f309e79..bcd4092b6c4 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/WeightedIssuesDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/WeightedIssuesDecorator.java @@ -48,7 +48,7 @@ import java.util.Map; key = CoreProperties.CORE_RULE_WEIGHTS_PROPERTY, defaultValue = CoreProperties.CORE_RULE_WEIGHTS_DEFAULT_VALUE, name = "Rules weight", - description = "A weight is associated to each severity to calculate the Rules Compliance Index.", + description = "A weight is associated to each severity to emphasize the most critical issues.", project = false, global = true, category = CoreProperties.CATEGORY_GENERAL) 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..9abac1e030d 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 @@ -1348,16 +1348,8 @@ public final class CoreMetrics { // // -------------------------------------------------------------------------------------------------------------------- - /** - * @deprecated since 4.0. See SONAR-4755 - */ - @Deprecated public static final String WEIGHTED_VIOLATIONS_KEY = "weighted_violations"; - /** - * @deprecated since 4.0. See SONAR-4755 - */ - @Deprecated public static final Metric WEIGHTED_VIOLATIONS = new Metric.Builder(WEIGHTED_VIOLATIONS_KEY, "Weighted issues", Metric.ValueType.INT) .setDescription("Weighted Issues") .setDirection(Metric.DIRECTION_WORST) @@ -1365,7 +1357,6 @@ public final class CoreMetrics { .setDomain(DOMAIN_ISSUES) .setBestValue(0.0) .setOptimizedBestValue(true) - .setHidden(true) .create(); /** -- 2.39.5