aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-05-07 15:03:28 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-05-07 15:04:56 +0200
commit93cb18b0a9e9e2ea9613e28d1b1538c7e51ff806 (patch)
treee58933b660a2f4d15ed8c9c1f07da52e0bc0d150 /sonar-plugin-api
parent9ac6a6125cf9c67759858223dc65cf8176e849f9 (diff)
downloadsonarqube-93cb18b0a9e9e2ea9613e28d1b1538c7e51ff806.tar.gz
sonarqube-93cb18b0a9e9e2ea9613e28d1b1538c7e51ff806.zip
SONAR-3755 refactor comments
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueComment.java36
2 files changed, 38 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java
index 15ebeb82905..61bfe64f6b1 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java
@@ -25,6 +25,7 @@ import javax.annotation.CheckForNull;
import java.io.Serializable;
import java.util.Date;
+import java.util.List;
import java.util.Map;
/**
@@ -105,4 +106,5 @@ public interface Issue extends Serializable {
@CheckForNull
String actionPlanKey();
+ List<IssueComment> comments();
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueComment.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueComment.java
new file mode 100644
index 00000000000..3b32b6d6c19
--- /dev/null
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueComment.java
@@ -0,0 +1,36 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2013 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.api.issue;
+
+import javax.annotation.CheckForNull;
+import java.util.Date;
+
+public interface IssueComment {
+ String text();
+
+ String key();
+
+ @CheckForNull
+ String userLogin();
+
+ Date createdAt();
+
+ Date updatedAt();
+}