aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-23 23:26:35 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-23 23:26:35 +0100
commit079096f44a4a5aed828d936e87596bef604303ce (patch)
treef9f937c8b3a5b4a459c2b0947bf27439d52678d0 /server/sonar-server
parent2bc4e191083b996abf80bcbc535064bce6881bed (diff)
downloadsonarqube-079096f44a4a5aed828d936e87596bef604303ce.tar.gz
sonarqube-079096f44a4a5aed828d936e87596bef604303ce.zip
Fix quality flaws
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java b/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java
index 21e02dbea58..98eb9c9bea9 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/platform/monitoring/EsMonitor.java
@@ -28,12 +28,10 @@ import org.elasticsearch.action.admin.indices.stats.IndexStats;
import org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse;
import org.sonar.server.es.EsClient;
-import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import static org.apache.commons.io.FileUtils.byteCountToDisplaySize;
-import static org.sonar.api.utils.DateUtils.formatDateTime;
public class EsMonitor extends BaseMonitorMBean implements EsMonitorMBean {
@@ -77,7 +75,7 @@ public class EsMonitor extends BaseMonitorMBean implements EsMonitorMBean {
}
private LinkedHashMap<String, LinkedHashMap<String, Object>> indexAttributes() {
- LinkedHashMap<String,LinkedHashMap<String,Object>> indices = new LinkedHashMap<>();
+ LinkedHashMap<String, LinkedHashMap<String, Object>> indices = new LinkedHashMap<>();
IndicesStatsResponse indicesStats = esClient.prepareStats().all().get();
for (Map.Entry<String, IndexStats> indexStats : indicesStats.getIndices().entrySet()) {
@@ -94,7 +92,7 @@ public class EsMonitor extends BaseMonitorMBean implements EsMonitorMBean {
* map of {node name -> node attributes}
*/
private LinkedHashMap<String, LinkedHashMap<String, Object>> nodeAttributes() {
- LinkedHashMap<String,LinkedHashMap<String,Object>> nodes = new LinkedHashMap<>();
+ LinkedHashMap<String, LinkedHashMap<String, Object>> nodes = new LinkedHashMap<>();
NodesStatsResponse nodesStats = esClient.prepareNodesStats().all().get();
for (Map.Entry<String, NodeStats> entry : nodesStats.getNodesMap().entrySet()) {