diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-27 13:48:54 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-27 13:48:54 +0200 |
commit | 59193935832caf91e534a46b523593cc9dcc4ba8 (patch) | |
tree | 7d312cf70a0db60342aed953ae09a16f9a870d41 /sonar-ws-client | |
parent | 611d41623a6f32a9d0e9371cc4e61114ea682162 (diff) | |
download | sonarqube-59193935832caf91e534a46b523593cc9dcc4ba8.tar.gz sonarqube-59193935832caf91e534a46b523593cc9dcc4ba8.zip |
SONAR-4301 Remove securityExclusions parameter
Diffstat (limited to 'sonar-ws-client')
9 files changed, 2 insertions, 18 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueParser.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueParser.java index 537d1ceeb62..855ad83698f 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueParser.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueParser.java @@ -74,7 +74,6 @@ class IssueParser { Map paging = (Map) jsonRoot.get("paging"); result.setPaging(new Paging(paging)); - result.setSecurityExclusions(JsonUtils.getBoolean(jsonRoot, "securityExclusions")); result.setMaxResultsReached(JsonUtils.getBoolean(jsonRoot, "maxResultsReached")); return result; } diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issues.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issues.java index ea06ffdf8f7..9dcd5926c94 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issues.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/Issues.java @@ -38,7 +38,6 @@ public class Issues { private final Map<String, Component> componentsByKey = new HashMap<String, Component>(); private final Map<String, Component> projectsByKey = new HashMap<String, Component>(); private Paging paging; - private Boolean securityExclusions; private Boolean maxResultsReached; public List<Issue> list() { @@ -88,10 +87,6 @@ public class Issues { return paging; } - public Boolean securityExclusions() { - return securityExclusions; - } - public Boolean maxResultsReached() { return maxResultsReached; } @@ -126,11 +121,6 @@ public class Issues { return this; } - Issues setSecurityExclusions(Boolean securityExclusions) { - this.securityExclusions = securityExclusions; - return this; - } - Issues setMaxResultsReached(Boolean maxResultsReached) { this.maxResultsReached = maxResultsReached; return this; 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 82dd222875d..7f0a76ecb4d 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 @@ -78,7 +78,6 @@ public class IssueParserTest { assertThat(paging.pages()).isEqualTo(1); assertThat(paging.total()).isEqualTo(2); - assertThat(issues.securityExclusions()).isTrue(); assertThat(issues.maxResultsReached()).isTrue(); } @@ -89,6 +88,7 @@ public class IssueParserTest { assertThat(issues).isNotNull(); assertThat(issues.list()).isEmpty(); assertThat(issues.rules()).isEmpty(); + assertThat(issues.maxResultsReached()).isFalse(); } @Test diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/empty.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/empty.json index 8f05e1953b7..b3712e0d503 100644 --- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/empty.json +++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/empty.json @@ -5,5 +5,5 @@ "total": 0, "pages": 0 }, - "securityExclusions": true + "maxResultsReached": false }
\ No newline at end of file diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-comments.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-comments.json index 4378189dbba..5118aaee009 100644 --- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-comments.json +++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-comments.json @@ -38,6 +38,5 @@ "total": 2, "pages": 1 }, - "securityExclusions": true, "maxResultsReached": false }
\ No newline at end of file diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-components.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-components.json index 37711422340..2f331712d3c 100644 --- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-components.json +++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-components.json @@ -46,6 +46,5 @@ "total": 2, "pages": 1 }, - "securityExclusions": true, "maxResultsReached": false }
\ No newline at end of file diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-projects.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-projects.json index c999362047b..a5e4ea7cd9d 100644 --- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-projects.json +++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-projects.json @@ -54,6 +54,5 @@ "total": 2, "pages": 1 }, - "securityExclusions": true, "maxResultsReached": false }
\ No newline at end of file diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-users.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-users.json index 32d3a8e323f..7d8bc6586a4 100644 --- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-users.json +++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/issue-with-users.json @@ -52,6 +52,5 @@ "total": 2, "pages": 1 }, - "securityExclusions": true, "maxResultsReached": false }
\ No newline at end of file diff --git a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/search.json b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/search.json index 6931c7de92b..55ff5e79e53 100644 --- a/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/search.json +++ b/sonar-ws-client/src/test/resources/org/sonar/wsclient/issue/IssueParserTest/search.json @@ -51,6 +51,5 @@ "total": 2, "pages": 1 }, - "securityExclusions": true, "maxResultsReached": true }
\ No newline at end of file |