diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-17 20:02:40 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-17 20:02:40 +0200 |
commit | ae188fbbf4d9871adff1815fa4d69c7c0fc62104 (patch) | |
tree | 84ccadd629111a494ea81620c068cb144839f61f /sonar-ws-client | |
parent | 4507eb7a4b64a8d3b973d6878c257cb6eaeec450 (diff) | |
download | sonarqube-ae188fbbf4d9871adff1815fa4d69c7c0fc62104.tar.gz sonarqube-ae188fbbf4d9871adff1815fa4d69c7c0fc62104.zip |
SONAR-3755 remove unused methods in issue ws client
Diffstat (limited to 'sonar-ws-client')
3 files changed, 2 insertions, 26 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 69cab8fc29c..c00f4d25f0e 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 @@ -54,14 +54,6 @@ public class Issue { return JsonUtils.getString(json, "severity"); } - /** - * TODO to be removed - */ - @CheckForNull - public String description() { - return JsonUtils.getString(json, "message"); - } - @CheckForNull public String message() { return JsonUtils.getString(json, "message"); @@ -89,15 +81,6 @@ public class Issue { return JsonUtils.getString(json, "resolution"); } - /** - * Login of the user who created the manual issue, else null. - * TODO to be removed - */ - @CheckForNull - public String userLogin() { - return JsonUtils.getString(json, "reporter"); - } - @CheckForNull public String reporter() { return JsonUtils.getString(json, "reporter"); diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java index 204e90c6f54..db597021e08 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java @@ -76,13 +76,6 @@ public class IssueQuery { return addParam("actionPlans", s); } - /** - * TODO To be removed - */ - public IssueQuery userLogins(String... s) { - return addParam("reporters", s); - } - public IssueQuery reporters(String... s) { return addParam("reporters", s); } diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueParserTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueParserTest.java index 2b2cb50984b..1d84ad11cbc 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueParserTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueParserTest.java @@ -47,7 +47,7 @@ public class IssueParserTest { assertThat(first.assignee()).isEqualTo("karadoc"); assertThat(first.message()).isEqualTo("the message"); assertThat(first.effortToFix()).isEqualTo(4.2); - assertThat(first.userLogin()).isEqualTo("perceval"); + assertThat(first.reporter()).isEqualTo("perceval"); assertThat(first.creationDate()).isNotNull(); assertThat(first.updateDate()).isNotNull(); assertThat(first.closeDate()).isNotNull(); @@ -60,7 +60,7 @@ public class IssueParserTest { assertThat(second.key()).isEqualTo("FGHIJ"); assertThat(second.line()).isNull(); assertThat(second.effortToFix()).isNull(); - assertThat(second.description()).isNull(); + assertThat(second.reporter()).isNull(); assertThat(second.attribute("JIRA")).isNull(); assertThat(second.attributes()).isEmpty(); assertThat(second.comments()).isEmpty(); |