diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-11-02 19:22:04 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-11-02 19:22:04 +0100 |
commit | 93e0c16896e6583a52adc77e7407336b623f9759 (patch) | |
tree | a260b324625ec8cd2f10e1875c57e7a0db34dddc | |
parent | ea8aadc50b8333525595431438c2075fb296b910 (diff) | |
download | sonarqube-93e0c16896e6583a52adc77e7407336b623f9759.tar.gz sonarqube-93e0c16896e6583a52adc77e7407336b623f9759.zip |
Fix some violations
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/config/Logback.java | 4 | ||||
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/Logback.java b/sonar-core/src/main/java/org/sonar/core/config/Logback.java index ceb1cc0dba4..2da8d136024 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/Logback.java +++ b/sonar-core/src/main/java/org/sonar/core/config/Logback.java @@ -39,6 +39,10 @@ import java.io.InputStream; */ public final class Logback { + private Logback() { + // only static methods + } + public static void configure(String classloaderPath) { InputStream input = Logback.class.getResourceAsStream(classloaderPath); if (input == null) { diff --git a/sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java b/sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java index 454f2fd5a43..d8bda078883 100644 --- a/sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java +++ b/sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java @@ -39,6 +39,10 @@ import java.util.Properties; */ final class SonarHome { + private SonarHome() { + // only static methods + } + static final String PROPERTY = "SONAR_HOME"; private static File home; |