From a159dd8937e7e0174fd03c80a99ae4857504b178 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Tue, 14 Jun 2016 15:47:35 +0200 Subject: [PATCH] Fix quality flaws --- .../java/org/sonar/server/permission/PermissionService.java | 1 - .../main/java/org/sonar/db/permission/PermissionRepository.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/PermissionService.java b/server/sonar-server/src/main/java/org/sonar/server/permission/PermissionService.java index 882e16aa568..bfa7d74e1c8 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/PermissionService.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/PermissionService.java @@ -63,7 +63,6 @@ public class PermissionService { } finally { session.close(); } - indexProjectPermissions(); } public void applyDefaultPermissionTemplate(DbSession session, String componentKey) { diff --git a/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java b/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java index 29f9a9d5a7e..22f62301b47 100644 --- a/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java +++ b/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java @@ -199,7 +199,7 @@ public class PermissionRepository { return defaultTemplateKey; } - private void checkAtMostOneMatchForComponentKey(final String componentKey, List matchingTemplates) { + private static void checkAtMostOneMatchForComponentKey(final String componentKey, List matchingTemplates) { if (matchingTemplates.size() > 1) { StringBuilder templatesNames = new StringBuilder(); for (Iterator it = matchingTemplates.iterator(); it.hasNext();) { -- 2.39.5