]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 14 Jun 2016 13:47:35 +0000 (15:47 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 17 Jun 2016 13:38:48 +0000 (15:38 +0200)
server/sonar-server/src/main/java/org/sonar/server/permission/PermissionService.java
sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java

index 882e16aa5681ff9320ac351d058d361f5d8229ac..bfa7d74e1c816e97d9c0ccc7793b20de65b0d926 100644 (file)
@@ -63,7 +63,6 @@ public class PermissionService {
     } finally {
       session.close();
     }
-    indexProjectPermissions();
   }
 
   public void applyDefaultPermissionTemplate(DbSession session, String componentKey) {
index 29f9a9d5a7e86a47c8c293d6042e4e249e2b38c3..22f62301b47c9b923fcfbe0189cdc38b56fee385 100644 (file)
@@ -199,7 +199,7 @@ public class PermissionRepository {
     return defaultTemplateKey;
   }
 
-  private void checkAtMostOneMatchForComponentKey(final String componentKey, List<PermissionTemplateDto> matchingTemplates) {
+  private static void checkAtMostOneMatchForComponentKey(final String componentKey, List<PermissionTemplateDto> matchingTemplates) {
     if (matchingTemplates.size() > 1) {
       StringBuilder templatesNames = new StringBuilder();
       for (Iterator<PermissionTemplateDto> it = matchingTemplates.iterator(); it.hasNext();) {