]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5224 Deprecate the "accessors" metric
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 29 Oct 2014 07:07:45 +0000 (08:07 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 29 Oct 2014 08:00:00 +0000 (09:00 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 938a71de7fe5a4abbec1445900198b3dacff7b15..bca22ce998f102af5322d0a35812afac0d759efb 100644 (file)
@@ -27,7 +27,6 @@ import org.sonar.api.resources.Scopes;
 import org.sonar.api.utils.SonarException;
 
 import javax.annotation.Nullable;
-
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
 import java.util.List;
@@ -163,13 +162,25 @@ public final class CoreMetrics {
     .setFormula(new SumChildValuesFormula(false))
     .create();
 
+  /**
+   * @deprecated since 5.0.
+   * @see <a href="https://jira.codehaus.org/browse/SONAR-5224">SONAR-5224</a>
+   */
+  @Deprecated
   public static final String ACCESSORS_KEY = "accessors";
+
+  /**
+   * @deprecated since 5.0.
+   * @see <a href="https://jira.codehaus.org/browse/SONAR-5224">SONAR-5224</a>
+   */
+  @Deprecated
   public static final Metric<Integer> ACCESSORS = new Metric.Builder(ACCESSORS_KEY, "Accessors", Metric.ValueType.INT)
     .setDescription("Accessors")
     .setDirection(Metric.DIRECTION_WORST)
     .setQualitative(false)
     .setDomain(DOMAIN_SIZE)
     .setFormula(new SumChildValuesFormula(false))
+    .setHidden(true)
     .create();
 
   public static final String STATEMENTS_KEY = "statements";