summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorr.bogacki <r.bogacki@samsung.com>2019-02-18 10:42:11 +0100
committerr.bogacki <r.bogacki@samsung.com>2019-02-18 10:43:42 +0100
commitcff1140f7f679b47b3e679e77c9e013d1bda4b43 (patch)
treec4dac9f4ad10dae67261d40a9edfb06abf06688f /src
parent50bd365f7e30337a21806cd292e75c3f03985b79 (diff)
Sonar vulnerability fixes in MusicDataStoreHandle
Removed unnecessary imports. Added private constructor for static utility class. Change-Id: I2e41ba263194dbb3e7e6ae70074c85bfd69b7ab1 Issue-ID: MUSIC-335 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/music/datastore/MusicDataStoreHandle.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/org/onap/music/datastore/MusicDataStoreHandle.java b/src/main/java/org/onap/music/datastore/MusicDataStoreHandle.java
index bb8f3cbd..194fdad1 100644
--- a/src/main/java/org/onap/music/datastore/MusicDataStoreHandle.java
+++ b/src/main/java/org/onap/music/datastore/MusicDataStoreHandle.java
@@ -4,6 +4,8 @@
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
+ * Modifications Copyright (c) 2019 Samsung
+ * ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -28,15 +30,16 @@ import java.util.Map;
import org.onap.music.eelf.logging.EELFLoggerDelegate;
import org.onap.music.exceptions.MusicServiceException;
import org.onap.music.main.MusicUtil;
-import org.onap.music.service.impl.MusicZKCore;
import com.datastax.driver.core.ResultSet;
import com.datastax.driver.core.TableMetadata;
public class MusicDataStoreHandle {
-
-
-
+
+ private MusicDataStoreHandle(){
+ throw new IllegalStateException("Utility class");
+ }
+
public static MusicDataStore mDstoreHandle = null;
private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MusicDataStoreHandle.class);