aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
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());