From: Simon Brandhof
Date: Thu, 6 Jun 2013 21:02:32 +0000 (+0200)
Subject: Fix javadoc
X-Git-Tag: 3.6~51
X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f5dfa959b7c8c98af244472ab1e2024d5c94351;p=sonarqube.git
Fix javadoc
---
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/Property.java b/sonar-plugin-api/src/main/java/org/sonar/api/Property.java
index 665b90685be..99531ed1354 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/Property.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/Property.java
@@ -64,7 +64,7 @@ public @interface Property {
/**
* @since 2.11
- * @see org.sonar.api.config.PropertyDef.Builder#category(String)
+ * @see org.sonar.api.config.PropertyDefinition#category()
*/
String category() default "";
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/InstantiationStrategy.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/InstantiationStrategy.java
index 52384aa3084..3dacc2fd6d3 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/InstantiationStrategy.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/InstantiationStrategy.java
@@ -26,7 +26,7 @@ import java.lang.annotation.Target;
/**
* Define instantiation strategy of batch extensions. If an extension is not annotated, then default value
- * is {@link org.sonar.api.batch.InstantiationStrategy#PROJECT}.
+ * is {@link org.sonar.api.batch.InstantiationStrategy#PER_PROJECT}.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SensorContext.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SensorContext.java
index 71d0658c1c4..3e459fce6ad 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SensorContext.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SensorContext.java
@@ -188,7 +188,6 @@ public interface SensorContext {
/**
* Save the source code of a file. The file must be have been indexed before.
*
- * @return false if the resource is excluded or not indexed
* @throws org.sonar.api.resources.DuplicatedSourceException
* if the source has already been set on this resource
* @since 1.10. Returns a boolean since 2.6.
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java
index bd2e50c564b..b1c3e8e79e4 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java
@@ -92,7 +92,6 @@ public abstract class SonarIndex implements DirectedGraphAccessor
* Here is the format (since Sonar 2.12):
*
- * {@code
+ *
*
*
*
@@ -1310,7 +1310,7 @@ public final class CoreMetrics {
* ...
*
* ...
- * }
+ *
*
*
*/
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 00e28dd643e..440d816b15c 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
@@ -704,8 +704,11 @@ public class Metric implements ServerExtension, BatchExtension {
* When a formula is set, sensors/decorators just need to store measures at a specific level and let Sonar run the formula to store
* measures on the remaining levels.
*
- * @see {@link SumChildDistributionFormula}, {@link SumChildValuesFormula}, {@link AverageComplexityFormula}, {@link MeanAggregationFormula},
- * {@link WeightedMeanAggregationFormula}
+ * @see SumChildDistributionFormula
+ * @see SumChildValuesFormula
+ * @see MeanAggregationFormula
+ * @see WeightedMeanAggregationFormula
+ * @see AverageComplexityFormula
*
* @param f the formula
* @return the builder
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java
index 789aa429b11..8b377186b4e 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/Alert.java
@@ -231,7 +231,6 @@ public class Alert extends BaseIdentifiable implements Cloneable {
}
/**
- * @see org.sonar.plugins.core.sensors.CheckAlertThresholds#getAlertLabel(Alert alert, Metric.Level level)
* @deprecated since 3.4 because it does not manage alerts with variation
*/
@Deprecated
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
index c3bdf4bae09..08fae8fbca5 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
@@ -228,7 +228,6 @@ public class RulesProfile implements Cloneable {
}
/**
- * @return
* @deprecated since 3.3. Always return true.
*/
@Deprecated
@@ -237,7 +236,6 @@ public class RulesProfile implements Cloneable {
}
/**
- * @return
* @deprecated since 3.3. Always return true.
*/
@Deprecated
@@ -246,7 +244,6 @@ public class RulesProfile implements Cloneable {
}
/**
- * @return
* @deprecated since 3.3.
*/
@Deprecated
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ProjectUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ProjectUtils.java
index 34ce5a1f0b2..fc75e6bab18 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ProjectUtils.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ProjectUtils.java
@@ -26,7 +26,7 @@ import java.util.Collection;
import java.util.List;
/**
- * @TODO Actually this class incorrectly named, because provides information not about project, but about Java project.
+ * TODO Actually this class incorrectly named, because provides information not about project, but about Java project.
* And seems that only core plugins use this class.
*
* @since 1.10
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java
index e80e3f05406..d5aa6d2e402 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java
@@ -49,7 +49,6 @@ import java.util.Map;
* "configurable" (since 3.6) : if true, the settings page can be displayed on the resource
*
*
- * @see DefaultResourceTypes in Sonar Core Plugin to see the default resource types
* @since 2.14
*/
@Beta
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/violations/ViolationQuery.java b/sonar-plugin-api/src/main/java/org/sonar/api/violations/ViolationQuery.java
index 470e3929648..8b169aaaf23 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/violations/ViolationQuery.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/violations/ViolationQuery.java
@@ -66,8 +66,6 @@ public final class ViolationQuery {
/**
* Tells if the query should return only switched-off violations.
- *
- * @return
*/
public boolean isSwitchedOff() {
return switchMode == SwitchMode.OFF;
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/Criterion.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/Criterion.java
index e266e48807c..a1e8cba29fa 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/web/Criterion.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/Criterion.java
@@ -27,7 +27,7 @@ import com.google.common.collect.ImmutableSortedSet;
import java.util.Set;
/**
- * Definition of a criterion to be used to narrow down a {@see Filter}.
+ * Definition of a criterion to be used to narrow down a {@link Filter}.
*
* @since 3.1
*/
@@ -60,7 +60,7 @@ public final class Criterion {
/**
* Creates a new {@link Criterion} with a numerical value.
*
- * Valid values for the {@code operator} are {@value #EQ}, {@value #GT}, {@value #GTE}, {@value #LT} and {@value #LTE}
+ * Valid values for the {@code operator} are {@code #EQ}, {@code #GT}, {@code #GTE}, {@code #LT} and {@code #LTE}
*
* @throws IllegalArgumentException if {@code operator} is not valid
*/
@@ -71,7 +71,7 @@ public final class Criterion {
/**
* Creates a new {@link Criterion} with a text value.
*
- * Valid values for the {@code operator} are {@value #EQ}, {@value #GT}, {@value #GTE}, {@value #LT} and {@value #LTE}
+ * Valid values for the {@code operator} are {@code #EQ}, {@code #GT}, {@code #GTE}, {@code #LT} and {@code #LTE}
*
* @throws IllegalArgumentException if {@code operator} is not valid
*/
@@ -82,7 +82,7 @@ public final class Criterion {
/**
* Creates a new {@link Criterion} on a metric, with a numerical value.
*
- * Valid values for the {@code operator} are {@value #EQ}, {@value #GT}, {@value #GTE}, {@value #LT} and {@value #LTE}
+ * Valid values for the {@code operator} are {@code #EQ}, {@code #GT}, {@code #GTE}, {@code #LT} and {@code #LTE}
*
* @throws IllegalArgumentException if {@code operator} is not valid
*/
@@ -93,7 +93,7 @@ public final class Criterion {
/**
* Creates a new {@link Criterion} on a metric, with a text value.
*
- * Valid values for the {@code operator} are {@value #EQ}, {@value #GT}, {@value #GTE}, {@value #LT} and {@value #LTE}
+ * Valid values for the {@code operator} are {@code #EQ}, {@code #GT}, {@code #GTE}, {@code #LT} and {@code #LTE}
*
* @throws IllegalArgumentException if {@code operator} is not valid
*/
@@ -129,7 +129,7 @@ public final class Criterion {
/**
* Get the the criterion's operator.
*
- * Valid values for the {@code operator} are {@value #EQ}, {@value #GT}, {@value #GTE}, {@value #LT} and {@value #LTE}
+ * Valid values for the {@code operator} are {@code #EQ}, {@code #GT}, {@code #GTE}, {@code #LT} and {@code #LTE}
*
* @return the operator
*/
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/Filter.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/Filter.java
index cc293f09c58..e7a5ffb6d2f 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/web/Filter.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/Filter.java
@@ -113,7 +113,7 @@ public final class Filter {
/**
* Get the type of display used by this {@link Filter}.
*
- * Can be either {@value #LIST} or {@value #TREEMAP}
+ * Can be either {@code #LIST} or {@code #TREEMAP}
*
* @return the display type
*/
@@ -124,10 +124,10 @@ public final class Filter {
/**
* Set the type of display used by this {@link Filter}.
*
- * Can be either {@value #LIST} or {@value #TREEMAP}
+ * Can be either {@code #LIST} or {@code #TREEMAP}
*
* @return this filter
- * @throws IllegalArgumentException if {@code displayAs) is not {@value #LIST} or {@value #TREEMAP}
+ * @throws IllegalArgumentException if {@code displayAs} is not {@code #LIST} or {@code #TREEMAP}
*/
public Filter setDisplayAs(String displayAs) {
Preconditions.checkArgument(LIST.equals(displayAs) || TREEMAP.equals(displayAs), "Default display should be either %s or %s, not %s", LIST, TREEMAP, displayAs);
@@ -152,7 +152,7 @@ public final class Filter {
* The page size should be between 20
and 200
(included)
*
* @return the display type
- * @throws IllegalArgumentException if {@code pageSize) is not lower than {@code 20} or greater than {@code 200}
+ * @throws IllegalArgumentException if {@code pageSize} is not lower than {@code 20} or greater than {@code 200}
*/
public Filter setPageSize(int pageSize) {
Preconditions.checkArgument((pageSize >= 20) && (pageSize <= 200), "page size should be between 20 and 200");
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/FilterColumn.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/FilterColumn.java
index 46b425fa813..bf7f23bd3a0 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/web/FilterColumn.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/FilterColumn.java
@@ -26,7 +26,7 @@ import java.util.Set;
import com.google.common.base.Preconditions;
/**
- * Definition of a {@see Filter} column.
+ * Definition of a {@link Filter} column.
*
* @since 3.1
*/
@@ -52,7 +52,7 @@ public final class FilterColumn {
/**
* Creates a new {@link FilterColumn}.
*
- * Valid values for the {@code sortDirection} are {@value #ASC}, {@value #DESC}
+ * Valid values for the {@code sortDirection} are {@code #ASC}, {@code #DESC}
*
* When the @{see Filter} is persisted, a validation is made on the {@code family} and the {@code key}.
* They should point to a valid column description.
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetScope.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetScope.java
index 7bfc05b1710..4539143a656 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetScope.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetScope.java
@@ -25,7 +25,7 @@ import java.lang.annotation.*;
* Depending on its scope, a widget can be available for project dashboards (value = "PROJECT")
,
* global dashboards (value = "GLOBAL")
or both (value = {"PROJECT", "GLOBAL"})
.
*
- * Before version 3.1 all widget had a scope "PROJECT"
. If a widget is not annotated with {@WidgetScope},
+ *
Before version 3.1 all widget had a scope "PROJECT"
. If a widget is not annotated with @WidgetScope,
* then is is assumed project scoped.
*
* @since 3.1