From 93e0c16896e6583a52adc77e7407336b623f9759 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 2 Nov 2011 19:22:04 +0100 Subject: Fix some violations --- sonar-core/src/main/java/org/sonar/core/config/Logback.java | 4 ++++ sonar-server/src/main/java/org/sonar/server/platform/SonarHome.java | 4 ++++ 2 files changed, 8 insertions(+) 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; -- cgit v1.2.3