From 3576e24ee8bbf16df1fe3cb8149c69cfd0c8f895 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 31 Oct 2014 15:11:24 +0100 Subject: Remove useless field "permission" in IssueAuthorization index --- .../main/java/org/sonar/core/issue/db/IssueAuthorizationDto.java | 9 --------- .../java/org/sonar/core/issue/db/IssueAuthorizationDtoTest.java | 4 ---- 2 files changed, 13 deletions(-) (limited to 'sonar-core/src') 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 implements Serializ return this; } - public String getPermission() { - return permission; - } - - public IssueAuthorizationDto setPermission(String permission) { - this.permission = permission; - return this; - } - public List 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")); -- cgit v1.2.3