aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-05-24 23:30:20 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-05-24 23:30:20 +0400
commitaa5ecf8f621183473b73df6b6cbadb3417d91ce2 (patch)
tree84e99064cfcf000946fdbc6725b2a970d425dfda
parent36297a74b2cf6982d126e009ba92c23025e04ba1 (diff)
downloadsonarqube-aa5ecf8f621183473b73df6b6cbadb3417d91ce2.tar.gz
sonarqube-aa5ecf8f621183473b73df6b6cbadb3417d91ce2.zip
Add missing Javadocs for Metric.Builder
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
index 91210908704..970d454d622 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/Metric.java
@@ -123,7 +123,7 @@ public class Metric implements ServerExtension, BatchExtension {
/**
* Creates an empty metric
*
- * @deprecated in 1.12
+ * @deprecated in 1.12. Use the {@link Builder} factory.
*/
@Deprecated
public Metric() {
@@ -133,7 +133,7 @@ public class Metric implements ServerExtension, BatchExtension {
* Creates a metric based on its key. Shortcut to Metric(key, ValueType.INT)
*
* @param key the metric key
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key) {
@@ -146,7 +146,7 @@ public class Metric implements ServerExtension, BatchExtension {
*
* @param key the key
* @param type the type
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, ValueType type) {
@@ -154,7 +154,7 @@ public class Metric implements ServerExtension, BatchExtension {
}
/**
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, String name, String description, ValueType type, Integer direction, Boolean qualitative, String domain) {
@@ -175,7 +175,7 @@ public class Metric implements ServerExtension, BatchExtension {
* @param qualitative whether the metric is qualitative
* @param domain the metric domain
* @param userManaged whether the metric is user managed
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, String name, String description, ValueType type, Integer direction, Boolean qualitative, String domain, boolean userManaged) {
@@ -209,7 +209,7 @@ public class Metric implements ServerExtension, BatchExtension {
* @param qualitative whether the metric is qualitative
* @param domain the metric domain
* @param formula the metric formula
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, String name, ValueType type, Integer direction, Boolean qualitative, String domain, Formula formula) {
@@ -585,6 +585,9 @@ public class Metric implements ServerExtension, BatchExtension {
return this;
}
+ /**
+ * @since 2.7
+ */
public static final class Builder {
private String key;
private Metric.ValueType type;