From: Teryk Bellahsene Date: Tue, 14 Jun 2016 13:47:35 +0000 (+0200) Subject: Fix quality flaws X-Git-Tag: 6.0-RC1~292 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a159dd8937e7e0174fd03c80a99ae4857504b178;p=sonarqube.git Fix quality flaws --- 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();) {