diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-02-21 19:32:40 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-02-21 19:32:40 +0100 |
commit | ebf7643e81af44e8fd06ac0d7a8cf1175946dba7 (patch) | |
tree | 1ef4a1a6a2847ffb8e5c5b3e33ccd4ec8ba7bf85 /sonar-ws-client | |
parent | c49b05d030f2bb87740d92eeb5626697239993f9 (diff) | |
download | sonarqube-ebf7643e81af44e8fd06ac0d7a8cf1175946dba7.tar.gz sonarqube-ebf7643e81af44e8fd06ac0d7a8cf1175946dba7.zip |
SONAR-926 Add module key information on components for IntelliJ
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/component/Component.java | 8 |
1 files changed, 8 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 a348adbd9a4..9b5f5431c6e 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 @@ -48,6 +48,14 @@ public class Component { return JsonUtils.getString(json, "path"); } + /** + * @since 4.2 + */ + @CheckForNull + public String moduleKey() { + return JsonUtils.getString(json, "moduleKey"); + } + public String name() { return JsonUtils.getString(json, "name"); } |