]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 28 Sep 2016 15:03:53 +0000 (17:03 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 28 Sep 2016 16:07:34 +0000 (18:07 +0200)
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfileBackuper.java
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfileProjectOperations.java

index 6a3566435aaf36c5c92551bbbaadfd3398c32317..73c459989762cbc9c2757d9d97108fef32a5be93 100644 (file)
@@ -201,7 +201,7 @@ public class QProfileBackuper {
     }
   }
 
-  private SMInputFactory initStax() {
+  private static SMInputFactory initStax() {
     XMLInputFactory xmlFactory = XMLInputFactory.newInstance();
     xmlFactory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.TRUE);
     xmlFactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.FALSE);
index 40ec8d6f8d43669b50241b0816f6dd4370943d70..ae809fd6cbcca05bb023cf476a799f3f3239116d 100644 (file)
@@ -55,7 +55,7 @@ public class QProfileProjectOperations {
     }
   }
 
-  void addProject(String profileKey, String projectUuid, UserSession userSession, DbSession session) {
+  private void addProject(String profileKey, String projectUuid, UserSession userSession, DbSession session) {
     ComponentDto project = db.componentDao().selectOrFailByUuid(session, projectUuid);
     checkPermission(userSession, project.key());
     QualityProfileDto qualityProfile = findNotNull(profileKey, session);
@@ -89,7 +89,7 @@ public class QProfileProjectOperations {
     }
   }
 
-  public void removeProject(String language, long projectId, UserSession userSession) {
+  void removeProject(String language, long projectId, UserSession userSession) {
     DbSession session = db.openSession(false);
     try {
       ComponentDto project = db.componentDao().selectOrFailById(session, projectId);
@@ -105,7 +105,7 @@ public class QProfileProjectOperations {
     }
   }
 
-  public void removeAllProjects(String profileKey, UserSession userSession) {
+  void removeAllProjects(String profileKey, UserSession userSession) {
     checkPermission(userSession);
     DbSession session = db.openSession(false);
     try {