aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-11-02 19:22:04 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-11-02 19:22:04 +0100
commit93e0c16896e6583a52adc77e7407336b623f9759 (patch)
treea260b324625ec8cd2f10e1875c57e7a0db34dddc
parentea8aadc50b8333525595431438c2075fb296b910 (diff)
downloadsonarqube-93e0c16896e6583a52adc77e7407336b623f9759.tar.gz
sonarqube-93e0c16896e6583a52adc77e7407336b623f9759.zip
Fix some violations
-rw-r--r--sonar-core/src/main/java/org/sonar/core/config/Logback.java4
-rw-r--r--sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java4
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;