diff options
author | 2018-01-08 12:05:36 +0530 | |
---|---|---|
committer | 2018-01-09 09:14:37 +0000 | |
commit | 7476ddebf0b34cf4ebf4a3c64ff3163bc0b06058 (patch) | |
tree | b7915530d7bbf44deafef4d2a722ccfa058c6896 /openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb | |
parent | 58ac292d0b108c08ac7595c3dc45b2bc08346047 (diff) |
Fix sonar issues - CassandraSessionFactory
Rearrange code
Change-Id: I076403fd22790fd0e64fc51d3118e5a436941b61
Issue-ID: SDC-343
Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb')
-rw-r--r-- | openecomp-be/lib/openecomp-core-lib/openecomp-nosqldb-lib/openecomp-nosqldb-core/src/main/java/org/openecomp/core/nosqldb/impl/cassandra/CassandraSessionFactory.java | 3 |
1 files changed, 1 insertions, 2 deletions
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(); } |