From 3f7bb06099eed8ae33025c845f756005d5e5cc90 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 4 May 2011 17:26:22 +0400 Subject: [PATCH] SONAR-2371 Add Javadoc for Tests metric --- .../java/org/sonar/api/measures/CoreMetrics.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 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 33c3f4b4680..0d6409f48a8 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 @@ -201,6 +201,15 @@ public final class CoreMetrics { //-------------------------------------------------------------------------------------------------------------------- public static final String TESTS_KEY = "tests"; + + /** + * Value of measure for this metric can be saved from Sensor, taking into account following rules: + * + */ public static final Metric TESTS = new Metric(TESTS_KEY, "Unit tests", "Number of unit tests", Metric.ValueType.INT, Metric.DIRECTION_WORST, false, DOMAIN_TESTS); @@ -366,13 +375,13 @@ public final class CoreMetrics { .create(); /** - * @deprecated since 2.7. Replaced by COVERED_CONDITIONS_BY_LINE_KEY and COVERED_CONDITIONS_BY_LINE_KEY + * @deprecated in 2.7. Replaced by {@link #CONDITIONS_BY_LINE_KEY} and {@link #COVERED_CONDITIONS_BY_LINE_KEY} */ @Deprecated public static final String BRANCH_COVERAGE_HITS_DATA_KEY = "branch_coverage_hits_data"; /** - * @deprecated since 2.7 replaced by metrics CONDITIONS_BY_LINE and COVERED_CONDITIONS_BY_LINE + * @deprecated in 2.7. Replaced by metrics {@link #CONDITIONS_BY_LINE} and {@link #COVERED_CONDITIONS_BY_LINE} */ @Deprecated public static final Metric BRANCH_COVERAGE_HITS_DATA = new Metric.Builder(BRANCH_COVERAGE_HITS_DATA_KEY, "Branch coverage hits", Metric.ValueType.DATA) -- 2.39.5