aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java
index 67333a56f50..391170ce76a 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java
@@ -104,12 +104,15 @@ public class Violation {
return this;
}
+ /**
+ * @see #setLineId(Integer)
+ */
public Integer getLineId() {
return lineId;
}
/**
- * Sets the violation line
+ * Sets the violation line. Note that numbering starts from 1.
*
* @return the current object
*/
@@ -131,7 +134,7 @@ public class Violation {
}
/**
- * @see <code>setCost()</code>
+ * @see #setCost(Double)
* @since 2.4
*/
public Double getCost() {