From a8a05641920545aa094dffdb016b7b5febe9a879 Mon Sep 17 00:00:00 2001 From: ramanjaneya Date: Thu, 28 Sep 2017 11:46:04 +0530 Subject: Removed below sonar issues: Removed useless assignment Removed unused imports Issue-Id:AAI-215 Change-Id: I12a54d5db72560bc1714714584ac1b9bd820d9e5 Signed-off-by: ramanjaneya --- .../main/java/org/openecomp/aai/db/schema/AuditTitan.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'aai-core/src/main') 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 iterable = mgmt.getRelationTypes(PropertyKey.class); Iterator 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 iterable = mgmt.getGraphIndexes(Vertex.class); Iterator 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 iterable = mgmt.getRelationTypes(EdgeLabel.class); Iterator titanEdgeLabels = iterable.iterator(); - EdgeLabel edgeLabel = null; + EdgeLabel edgeLabel; while (titanEdgeLabels.hasNext()) { edgeLabel = titanEdgeLabels.next(); EdgeProperty edgeProperty = new EdgeProperty(); -- cgit 1.2.3-korg