summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-11-29 07:48:14 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-11-29 07:48:14 +0100
commita551380f3e26ddbbe78d93efd5ad298e4a00d0ab (patch)
treeff031c7f93bfce17c98a0d23af0692f08be0e553 /sonar-plugin-api
parent2801a3250a3fe9c99b6067985ee95f1442a3a513 (diff)
downloadsonarqube-a551380f3e26ddbbe78d93efd5ad298e4a00d0ab.tar.gz
sonarqube-a551380f3e26ddbbe78d93efd5ad298e4a00d0ab.zip
SONAR-4831 Add missing @since version and a characteristicByKey() for Views
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java3
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java3
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java6
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java3
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java4
5 files changed, 19 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java
index 1ea0eb7960d..2f670b2bb76 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java
@@ -25,6 +25,9 @@ import javax.annotation.CheckForNull;
import java.util.Date;
import java.util.List;
+/**
+ * @since 4.1
+ */
public interface Characteristic {
Integer id();
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java
index 080726b97af..c72f97e163b 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java
@@ -25,6 +25,9 @@ import org.sonar.api.technicaldebt.WorkUnit;
import java.util.Date;
+/**
+ * @since 4.1
+ */
public interface Requirement {
Integer id();
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java
index 10a5b832fc8..a4d1bf42509 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java
@@ -26,12 +26,18 @@ import javax.annotation.CheckForNull;
import java.util.List;
+/**
+ * @since 4.1
+ */
public interface TechnicalDebtModel {
@CheckForNull
Characteristic characteristicById(Integer id);
@CheckForNull
+ Characteristic characteristicByKey(String key);
+
+ @CheckForNull
Requirement requirementsByRule(RuleKey ruleKey);
@CheckForNull
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java
index 05cbe32ceb6..f42c6ea8564 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java
@@ -28,6 +28,9 @@ import org.sonar.api.technicaldebt.WorkUnit;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
+/**
+ * @since 4.1
+ */
public class Characteristic {
private Integer id;
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java
index acd3e33de4f..e013aee2be0 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java
@@ -25,6 +25,10 @@ import org.sonar.api.rules.Rule;
import java.util.List;
+/**
+ * @since 4.1
+ */
+
public interface TechnicalDebtManager extends ServerComponent {
List<Characteristic> findRootCharacteristics();