From 7476ddebf0b34cf4ebf4a3c64ff3163bc0b06058 Mon Sep 17 00:00:00 2001 From: siddharth0905 Date: Mon, 8 Jan 2018 12:05:36 +0530 Subject: Fix sonar issues - CassandraSessionFactory Rearrange code Change-Id: I076403fd22790fd0e64fc51d3118e5a436941b61 Issue-ID: SDC-343 Signed-off-by: siddharth0905 --- .../openecomp/core/nosqldb/impl/cassandra/CassandraSessionFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openecomp-be/lib/openecomp-core-lib') diff --git a/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb/impl/cassandra/CassandraSessionFactory.java b/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb/impl/cassandra/CassandraSessionFactory.java index c6b9160bad..8d7b5c9f3a 100644 --- a/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb/impl/cassandra/CassandraSessionFactory.java +++ b/openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb/impl/cassandra/CassandraSessionFactory.java @@ -154,12 +154,11 @@ public class CassandraSessionFactory { } private static class ReferenceHolder { + private static final Session CASSANDRA = newCassandraSession(); private ReferenceHolder() { // prevent instantiation } - - private static final Session CASSANDRA = newCassandraSession(); } -- cgit 1.2.3-korg