aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-27 10:53:20 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-27 10:53:20 +0200
commitd941431c63764575e8372312665ba4e284d5bf88 (patch)
treedf2b308661afce68430c7ce678c2bfc4f874f915 /server
parent9ffbe3df1ee7405c6ed8486ea43fd84983d071e4 (diff)
downloadsonarqube-d941431c63764575e8372312665ba4e284d5bf88.tar.gz
sonarqube-d941431c63764575e8372312665ba4e284d5bf88.zip
Add static to permission template methods
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java2
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java
index d7aa7e82d3c..c782fad40a5 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/CreateTemplateAction.java
@@ -114,7 +114,7 @@ public class CreateTemplateAction implements PermissionsWsAction {
return template;
}
- private Permissions.CreatePermissionTemplateResponse buildResponse(PermissionTemplateDto permissionTemplateDto) {
+ private static Permissions.CreatePermissionTemplateResponse buildResponse(PermissionTemplateDto permissionTemplateDto) {
PermissionTemplate permissionTemplateBuilder = toPermissionTemplateResponse(permissionTemplateDto);
return Permissions.CreatePermissionTemplateResponse.newBuilder().setPermissionTemplate(permissionTemplateBuilder).build();
}
diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java
index f90d6fa9dbd..de2f40ae6aa 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/UpdateTemplateAction.java
@@ -125,7 +125,7 @@ public class UpdateTemplateAction implements PermissionsWsAction {
return dbClient.permissionTemplateDao().update(dbSession, templateToUpdate);
}
- private UpdatePermissionTemplateResponse buildResponse(PermissionTemplateDto permissionTemplate) {
+ private static UpdatePermissionTemplateResponse buildResponse(PermissionTemplateDto permissionTemplate) {
PermissionTemplate permissionTemplateBuilder = toPermissionTemplateResponse(permissionTemplate);
return UpdatePermissionTemplateResponse.newBuilder().setPermissionTemplate(permissionTemplateBuilder).build();
}