diff options
author | ramanjaneya <ramanjaneya.palleti@huawei.com> | 2017-09-28 11:46:04 +0530 |
---|---|---|
committer | ramanjaneya <ramanjaneya.palleti@huawei.com> | 2017-09-28 11:47:43 +0530 |
commit | a8a05641920545aa094dffdb016b7b5febe9a879 (patch) | |
tree | 28148d74f66fd88bc49fd456e7ba95bd96ec176e /aai-core/src | |
parent | 49e3b4014c9529e5c594405764baa5f3cf5e489b (diff) |
Removed below sonar issues:
Removed useless assignment
Removed unused imports
Issue-Id:AAI-215
Change-Id: I12a54d5db72560bc1714714584ac1b9bd820d9e5
Signed-off-by: ramanjaneya <ramanjaneya.palleti@huawei.com>
Diffstat (limited to 'aai-core/src')
-rw-r--r-- | aai-core/src/main/java/org/openecomp/aai/db/schema/AuditTitan.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/aai-core/src/main/java/org/openecomp/aai/db/schema/AuditTitan.java b/aai-core/src/main/java/org/openecomp/aai/db/schema/AuditTitan.java index 814afd6b..838a9b60 100644 --- a/aai-core/src/main/java/org/openecomp/aai/db/schema/AuditTitan.java +++ b/aai-core/src/main/java/org/openecomp/aai/db/schema/AuditTitan.java @@ -20,13 +20,9 @@ package org.openecomp.aai.db.schema; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; + import java.util.Iterator; import java.util.LinkedHashSet; -import java.util.List; -import java.util.Map; import org.apache.tinkerpop.gremlin.structure.Vertex; @@ -66,7 +62,7 @@ public class AuditTitan extends Auditor { TitanManagement mgmt = graph.openManagement(); Iterable<PropertyKey> iterable = mgmt.getRelationTypes(PropertyKey.class); Iterator<PropertyKey> titanProperties = iterable.iterator(); - PropertyKey propKey = null; + PropertyKey propKey; while (titanProperties.hasNext()) { propKey = titanProperties.next(); DBProperty prop = new DBProperty(); @@ -86,7 +82,7 @@ public class AuditTitan extends Auditor { TitanManagement mgmt = graph.openManagement(); Iterable<TitanGraphIndex> iterable = mgmt.getGraphIndexes(Vertex.class); Iterator<TitanGraphIndex> titanIndexes = iterable.iterator(); - TitanGraphIndex titanIndex = null; + TitanGraphIndex titanIndex; while (titanIndexes.hasNext()) { titanIndex = titanIndexes.next(); if (titanIndex.isCompositeIndex()) { @@ -112,7 +108,7 @@ public class AuditTitan extends Auditor { TitanManagement mgmt = graph.openManagement(); Iterable<EdgeLabel> iterable = mgmt.getRelationTypes(EdgeLabel.class); Iterator<EdgeLabel> titanEdgeLabels = iterable.iterator(); - EdgeLabel edgeLabel = null; + EdgeLabel edgeLabel; while (titanEdgeLabels.hasNext()) { edgeLabel = titanEdgeLabels.next(); EdgeProperty edgeProperty = new EdgeProperty(); |