aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-11-10 11:24:13 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-11-10 11:24:19 +0100
commit392223920378664ef36a697abf83289da135a6f8 (patch)
treeeedd3fd4e5314f99d9e5e06dfacc0a04683fc1d1 /sonar-core/src
parent6f76f107838b9728ef957d8d2d2c2be2a04d57f6 (diff)
downloadsonarqube-392223920378664ef36a697abf83289da135a6f8.tar.gz
sonarqube-392223920378664ef36a697abf83289da135a6f8.zip
Fix quality flaws
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/graph/graphson/GraphsonUtil.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/graph/graphson/GraphsonUtil.java b/sonar-core/src/main/java/org/sonar/core/graph/graphson/GraphsonUtil.java
index fae97eca964..4f43f45dfaf 100644
--- a/sonar-core/src/main/java/org/sonar/core/graph/graphson/GraphsonUtil.java
+++ b/sonar-core/src/main/java/org/sonar/core/graph/graphson/GraphsonUtil.java
@@ -33,13 +33,7 @@ import javax.annotation.Nullable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.util.*;
import static org.sonar.core.graph.graphson.ElementPropertyConfig.ElementPropertiesRule;
@@ -467,7 +461,7 @@ class GraphsonUtil {
JSONObject convertedMap = new JSONObject();
JSONObject jsonObject = (JSONObject) value;
- Map<Object, Object> jsonObjectMap = (Map<Object, Object>) jsonObject;
+ Map<Object, Object> jsonObjectMap = jsonObject;
for (Map.Entry<Object, Object> entry : jsonObjectMap.entrySet()) {
// no need to getValue() here as this is already a ObjectNode and should have type info