summaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-02-11 10:50:49 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-02-11 10:51:48 +0100
commit47f2f97a93665db1e619679a31b0d78e0b81818f (patch)
treeb6e0b25552685bbd2d3ba918cf89a8faab78033d /sonar-ws-client
parentd680598734d6e05c5ee5598463e5dc7912bca31c (diff)
downloadsonarqube-47f2f97a93665db1e619679a31b0d78e0b81818f.tar.gz
sonarqube-47f2f97a93665db1e619679a31b0d78e0b81818f.zip
SONAR-926 Export component path in issues WS search results
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java
index 1a1114836bc..a348adbd9a4 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java
@@ -22,6 +22,7 @@ package org.sonar.wsclient.component;
import org.sonar.wsclient.unmarshallers.JsonUtils;
import javax.annotation.CheckForNull;
+
import java.util.Map;
public class Component {
@@ -39,6 +40,14 @@ public class Component {
return JsonUtils.getString(json, "key");
}
+ /**
+ * @since 4.2
+ */
+ @CheckForNull
+ public String path() {
+ return JsonUtils.getString(json, "path");
+ }
+
public String name() {
return JsonUtils.getString(json, "name");
}