aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/main/java/org/sonar
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-06-03 10:27:33 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-06-03 10:27:33 +0200
commit601d5ae88be21e172d9b1d756e9c72f896fe42d9 (patch)
treecbd52540cad3729c10569bbc4b3d53b2d8ce884e /sonar-ws-client/src/main/java/org/sonar
parentf19d13e201b24f6e7862407a50b112d056f51501 (diff)
downloadsonarqube-601d5ae88be21e172d9b1d756e9c72f896fe42d9.tar.gz
sonarqube-601d5ae88be21e172d9b1d756e9c72f896fe42d9.zip
SONAR-5341 Restore issue.componentId in order to be able to use SonarQube 3.7 Java Client
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issue.java6
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/issue/internal/DefaultIssue.java4
2 files changed, 10 insertions, 0 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issue.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issue.java
index 6a9d8477490..6e4c6da2b55 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issue.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issue.java
@@ -37,6 +37,12 @@ public interface Issue {
String componentKey();
+ /**
+ * Deprecated since 4.4
+ */
+ @Deprecated
+ Long componentId();
+
String projectKey();
String ruleKey();
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/internal/DefaultIssue.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/internal/DefaultIssue.java
index eadf2b9f1ee..a86f9e35cbd 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/internal/DefaultIssue.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/internal/DefaultIssue.java
@@ -45,6 +45,10 @@ public class DefaultIssue implements Issue {
return JsonUtils.getString(json, "key");
}
+ public Long componentId() {
+ return JsonUtils.getLong(json, "componentId");
+ }
+
public String componentKey() {
return JsonUtils.getString(json, "component");
}