Sonar vulnerability fixes in MusicDataStoreHandle 39/78639/1
authorr.bogacki <r.bogacki@samsung.com>
Mon, 18 Feb 2019 09:42:11 +0000 (10:42 +0100)
committerr.bogacki <r.bogacki@samsung.com>
Mon, 18 Feb 2019 09:43:42 +0000 (10:43 +0100)
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>
src/main/java/org/onap/music/datastore/MusicDataStoreHandle.java

index bb8f3cb..194fdad 100644 (file)
@@ -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);