diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-05 10:21:51 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-05 10:26:43 +0200 |
commit | 42bd0823e16c36baf43906be7ed12a5450ac2ff2 (patch) | |
tree | f1371fa14f242960ad3015672dfe45a2bd80abfe /sonar-application | |
parent | a36c9aaa524d7f13ed6b7fe710a52b9a1caeb296 (diff) | |
download | sonarqube-42bd0823e16c36baf43906be7ed12a5450ac2ff2.tar.gz sonarqube-42bd0823e16c36baf43906be7ed12a5450ac2ff2.zip |
Fix quality flaws
Diffstat (limited to 'sonar-application')
3 files changed, 3 insertions, 3 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/AppLogging.java b/sonar-application/src/main/java/org/sonar/application/AppLogging.java index 6c8e56553da..bec5548a4bd 100644 --- a/sonar-application/src/main/java/org/sonar/application/AppLogging.java +++ b/sonar-application/src/main/java/org/sonar/application/AppLogging.java @@ -60,7 +60,7 @@ class AppLogging { /** * Enable the copy in console of the logs written in logs/sonar.log */ - private void copyGobblerToConsole() { + private static void copyGobblerToConsole() { Logger consoleLogger = (Logger) LoggerFactory.getLogger(CONSOLE_LOGGER); Appender consoleAppender = consoleLogger.getAppender(CONSOLE_APPENDER); diff --git a/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java b/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java index d85612b74fa..cbfbf4d6265 100644 --- a/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java +++ b/sonar-application/src/main/java/org/sonar/application/JdbcSettings.java @@ -92,7 +92,7 @@ public class JdbcSettings { } } - private void checkRequiredParameter(String url, String val) { + private static void checkRequiredParameter(String url, String val) { if (!url.contains(val)) { throw new MessageException(String.format("JDBC URL must have the property '%s'", val)); } diff --git a/sonar-application/src/main/java/org/sonar/application/PropsBuilder.java b/sonar-application/src/main/java/org/sonar/application/PropsBuilder.java index c6c3404d0b3..081a41a7804 100644 --- a/sonar-application/src/main/java/org/sonar/application/PropsBuilder.java +++ b/sonar-application/src/main/java/org/sonar/application/PropsBuilder.java @@ -83,7 +83,7 @@ class PropsBuilder { return appJar.getParentFile().getParentFile(); } - private Properties loadPropertiesFile(File homeDir) throws IOException { + private static Properties loadPropertiesFile(File homeDir) throws IOException { Properties p = new Properties(); File propsFile = new File(homeDir, "conf/sonar.properties"); if (propsFile.exists()) { |