From: Sudarshan Kumar Date: Wed, 19 Jun 2019 10:04:10 +0000 (+0530) Subject: Sonar Fix - Type Inference X-Git-Tag: 1.6.0~4^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F90147%2F1;p=aai%2Fchamp.git Sonar Fix - Type Inference Sonar Fix - Type Inference Issue-ID: AAI-2371 Change-Id: I88169271581d1b6e8cd5d0b1338eae27c36dd31e Signed-off-by: Sudarshan Kumar --- diff --git a/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/graph/impl/InMemoryChampGraphImpl.java b/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/graph/impl/InMemoryChampGraphImpl.java index 74f678b..84df1d1 100644 --- a/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/graph/impl/InMemoryChampGraphImpl.java +++ b/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/graph/impl/InMemoryChampGraphImpl.java @@ -2,8 +2,9 @@ * ============LICENSE_START========================================== * org.onap.aai * =================================================================== - * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. - * Copyright © 2017-2018 Amdocs + * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright © 2017-2018 Amdocs + * Modifications Copyright (C) 2019 IBM * =================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,8 +65,8 @@ public final class InMemoryChampGraphImpl extends AbstractTinkerpopChampGraph { super(builder.graphConfiguration); this.graph = TinkerGraph.open(); - this.objectIndices = new ConcurrentHashMap (); - this.relationshipIndices = new ConcurrentHashMap (); + this.objectIndices = new ConcurrentHashMap<>(); + this.relationshipIndices = new ConcurrentHashMap<>(); this.schemaEnforcer = builder.schemaEnforcer; }