]> source.dussan.org Git - sonarqube.git/commitdiff
format code
authorStephane Gamard <stephane.gamard@searchbox.com>
Wed, 13 Aug 2014 15:53:14 +0000 (17:53 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Wed, 13 Aug 2014 15:53:14 +0000 (17:53 +0200)
server/process/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java
server/sonar-server/src/main/java/org/sonar/server/search/IndexDefinition.java
server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java

index 5ed52d9da8009064c1868b68116d45ae3571b06e..c2c90649575f28e14869abacbf47e0e7afd0f251 100644 (file)
@@ -124,7 +124,7 @@ public class ProcessWrapper extends Thread implements Terminable {
   }
 
   public ProcessWrapper setLogDir(File logDirectory) {
-    this.setEnvProperty("sonar.path.logs",logDirectory.getAbsolutePath());
+    this.setEnvProperty("sonar.path.logs", logDirectory.getAbsolutePath());
     return this;
   }
 
index 8edce3858fd07373544b69ba6a863e5a1656bdcd..b0b78ff8cb8251e51f32f1d0a2319d2c7c40b58c 100644 (file)
@@ -145,10 +145,10 @@ public class SearchServer extends MonitoredProcess {
       .build().start();
 
     node.client().admin().indices()
-        .preparePutTemplate("default")
-        .setTemplate("*")
-        .addMapping("_default_", "{\"dynamic\": \"strict\"}")
-        .get();
+      .preparePutTemplate("default")
+      .setTemplate("*")
+      .addMapping("_default_", "{\"dynamic\": \"strict\"}")
+      .get();
 
     if (this.isBlocking) {
       while (node != null && !node.isClosed()) {
index aebc0c85984329bcfab450b832cd3e4eb7339237..b0660b85e33b65d3fbde5e249bd9880372f55c47 100644 (file)
@@ -37,7 +37,6 @@ import org.sonar.process.Props;
 import javax.management.InstanceNotFoundException;
 import javax.management.MBeanRegistrationException;
 import javax.management.MBeanServer;
-
 import java.io.IOException;
 import java.lang.management.ManagementFactory;
 import java.net.ServerSocket;
index 81d8929466eb2836fb99ae6ed967a0692b4e160d..19efab2b24dbb726799713a4f3a2341defeab2e1 100644 (file)
@@ -32,7 +32,7 @@ public class IndexDefinition {
   private IndexDefinition(String indexName, String indexType) {
     this.indexName = indexName;
     this.indexType = indexType;
-}
+  }
 
   public String getIndexName() {
     return indexName;
@@ -50,11 +50,11 @@ public class IndexDefinition {
     return MANAGEMENT_TYPE;
   }
 
-  public static final IndexDefinition RULE = new IndexDefinition("rules","rules");
-  public static final IndexDefinition ACTIVE_RULE = new IndexDefinition("rules","activeRules");
-  public static final IndexDefinition LOG = new IndexDefinition("logs","sonarLogs");
+  public static final IndexDefinition RULE = new IndexDefinition("rules", "rules");
+  public static final IndexDefinition ACTIVE_RULE = new IndexDefinition("rules", "activeRules");
+  public static final IndexDefinition LOG = new IndexDefinition("logs", "sonarLogs");
 
 
   @VisibleForTesting
-  protected static IndexDefinition TEST = new IndexDefinition("test","test");
+  protected static IndexDefinition TEST = new IndexDefinition("test", "test");
 }
index 649fd8c9df0e54957e575f9a599417bea8b9f4bd..c1e941580243b0b2cbaee5f91b7ab058d9632827 100644 (file)
@@ -35,7 +35,6 @@ import org.sonar.server.search.IndexProperties;
 import org.sonar.server.ws.WsTester;
 
 import javax.annotation.Nullable;
-
 import java.io.File;
 import java.util.Arrays;
 import java.util.List;