]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaw (code cleanup)
authorStephane Gamard <stephane.gamard@searchbox.com>
Fri, 23 May 2014 18:26:10 +0000 (20:26 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Fri, 23 May 2014 18:27:20 +0000 (20:27 +0200)
sonar-server/src/test/java/org/sonar/server/rule2/RuleDataMediumTest.java
sonar-server/src/test/java/org/sonar/server/tester/DataStoreCleanup.java

index e2627bbb87a45c80b7458e934210bb34d3a3fe8e..c239a23c8e931700ca73e2a95ecc2547971f3101 100644 (file)
@@ -46,7 +46,7 @@ import java.util.List;
 import static org.fest.assertions.Assertions.assertThat;
 
 /**
- * Test persistence in db and indexation in es (--> integration of daos and indexes)
+ * Test persistence in db and indexation in es (--> integration of DAOs and Indexes)
  */
 public class RuleDataMediumTest {
 
index 2437b39df8924cd3bffe055da57940290193fb08..c04c70da395cc8c9551a5651787765d9d63c582c 100644 (file)
@@ -71,9 +71,10 @@ public class DataStoreCleanup implements ServerComponent {
   public void clearIndexes() {
     LOG.info("Truncate es indices");
     Client client = esNode.client();
-    client.prepareDeleteByQuery(
-      client.admin().cluster().prepareState().get().getState().getMetaData().concreteAllIndices()
-    ).setQuery(QueryBuilders.matchAllQuery()).get();
+    client.prepareDeleteByQuery(client.admin().cluster().prepareState().get()
+        .getState().getMetaData().concreteAllIndices())
+      .setQuery(QueryBuilders.matchAllQuery())
+      .get();
 
   }
 }