diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-31 15:11:24 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-31 15:24:46 +0100 |
commit | 3576e24ee8bbf16df1fe3cb8149c69cfd0c8f895 (patch) | |
tree | 6010df40804d3f13757f351073a32dc901b5fa55 /sonar-core/src | |
parent | 65fc4953dbc9c2fb87550056a8d3c08a301e65b7 (diff) | |
download | sonarqube-3576e24ee8bbf16df1fe3cb8149c69cfd0c8f895.tar.gz sonarqube-3576e24ee8bbf16df1fe3cb8149c69cfd0c8f895.zip |
Remove useless field "permission" in IssueAuthorization index
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/db/IssueAuthorizationDto.java | 9 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/db/IssueAuthorizationDtoTest.java | 4 |
2 files changed, 0 insertions, 13 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/db/IssueAuthorizationDto.java b/sonar-core/src/main/java/org/sonar/core/issue/db/IssueAuthorizationDto.java index 97d3a3bb413..eaed351cad7 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/db/IssueAuthorizationDto.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/db/IssueAuthorizationDto.java @@ -48,15 +48,6 @@ public final class IssueAuthorizationDto extends Dto<String> implements Serializ return this; } - public String getPermission() { - return permission; - } - - public IssueAuthorizationDto setPermission(String permission) { - this.permission = permission; - return this; - } - public List<String> getGroups() { return groups; } diff --git a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueAuthorizationDtoTest.java b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueAuthorizationDtoTest.java index 22b7e4943a8..9c83be95ca7 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/db/IssueAuthorizationDtoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/db/IssueAuthorizationDtoTest.java @@ -31,13 +31,11 @@ public class IssueAuthorizationDtoTest { public void getter_and_setter() throws Exception { IssueAuthorizationDto dto = new IssueAuthorizationDto() .setProjectUuid("Sample") - .setPermission("user") .setGroups(newArrayList("sonar-users")) .setUsers(newArrayList("john")); assertThat(dto.getKey()).isEqualTo("Sample"); assertThat(dto.getProjectUuid()).isEqualTo("Sample"); - assertThat(dto.getPermission()).isEqualTo("user"); assertThat(dto.getGroups()).containsExactly("sonar-users"); assertThat(dto.getUsers()).containsExactly("john"); } @@ -46,7 +44,6 @@ public class IssueAuthorizationDtoTest { public void add_group() throws Exception { IssueAuthorizationDto dto = new IssueAuthorizationDto() .setProjectUuid("Sample") - .setPermission("user") .setGroups(newArrayList("sonar-users")) .setUsers(newArrayList("john")); @@ -61,7 +58,6 @@ public class IssueAuthorizationDtoTest { public void add_user() throws Exception { IssueAuthorizationDto dto = new IssueAuthorizationDto() .setProjectUuid("Sample") - .setPermission("user") .setGroups(newArrayList("sonar-users")) .setUsers(newArrayList("john")); |