From: ramanjaneya Date: Thu, 28 Sep 2017 06:16:04 +0000 (+0530) Subject: Removed below sonar issues: X-Git-Tag: v1.1.0~24 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F16231%2F1;p=aai%2Faai-common.git Removed below sonar issues: Removed useless assignment Removed unused imports Issue-Id:AAI-215 Change-Id: I12a54d5db72560bc1714714584ac1b9bd820d9e5 Signed-off-by: ramanjaneya --- 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();