aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-29 15:53:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-29 19:01:12 +0200
commit501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef (patch)
treeba5b06c4357edb58ec3f248c6fa12324c1ec71ca /server/sonar-search
parentfcf0d15e049e9c6e647fae628dc0e2bc17d078b6 (diff)
downloadsonarqube-501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef.tar.gz
sonarqube-501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef.zip
Quality flaws
- do not declare multiple variables on same line - fix imports
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java4
-rw-r--r--server/sonar-search/src/test/java/org/sonar/search/SearchSettingsTest.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java b/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java
index b029604a56a..5af66245b72 100644
--- a/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java
+++ b/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java
@@ -71,7 +71,9 @@ class SearchSettings {
private void configureFileSystem(ImmutableSettings.Builder builder) {
File homeDir = props.nonNullValueAsFile(ProcessProperties.PATH_HOME);
- File dataDir, workDir, logDir;
+ File dataDir;
+ File workDir;
+ File logDir;
// data dir
String dataPath = props.value(ProcessProperties.PATH_DATA);
diff --git a/server/sonar-search/src/test/java/org/sonar/search/SearchSettingsTest.java b/server/sonar-search/src/test/java/org/sonar/search/SearchSettingsTest.java
index 295eb86b94a..c7ee21325ad 100644
--- a/server/sonar-search/src/test/java/org/sonar/search/SearchSettingsTest.java
+++ b/server/sonar-search/src/test/java/org/sonar/search/SearchSettingsTest.java
@@ -86,7 +86,9 @@ public class SearchSettingsTest {
@Test
public void override_dirs() throws Exception {
- File dataDir = temp.newFolder(), logDir = temp.newFolder(), tempDir = temp.newFolder();
+ File dataDir = temp.newFolder();
+ File logDir = temp.newFolder();
+ File tempDir = temp.newFolder();
Props props = minProps();
props.set(ProcessProperties.PATH_DATA, dataDir.getAbsolutePath());
props.set(ProcessProperties.PATH_LOGS, logDir.getAbsolutePath());