Added bug fix reported in SonarQube for MusicUtil 27/63227/2
authorChandan Ghosh <cghosh12@in.ibm.com>
Tue, 28 Aug 2018 09:37:16 +0000 (15:07 +0530)
committerChandan Ghosh <cghosh12@in.ibm.com>
Wed, 29 Aug 2018 06:43:55 +0000 (12:13 +0530)
Added bug fix reported in SonarQube for MusicUtil

Issue-ID: MUSIC-107
Change-Id: I6792a357505880fb85d353e3872b16aca2412c8b
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
src/main/java/org/onap/music/main/MusicUtil.java

index 5b23a93..cfad845 100755 (executable)
@@ -101,7 +101,7 @@ public class MusicUtil {
     private static String cassName = "cassandra";
     private static String cassPwd;
     private static String aafEndpointUrl = null;
-    public static ConcurrentMap<String, Long> zkNodeMap = new ConcurrentHashMap<>();
+    public static final ConcurrentMap<String, Long> zkNodeMap = new ConcurrentHashMap<>();
 
     private MusicUtil() {
         throw new IllegalStateException("Utility Class");
@@ -599,7 +599,7 @@ public class MusicUtil {
                    try {
                        input.close();
                    } catch (IOException e) {
-                       e.printStackTrace();
+                       logger.error(EELFLoggerDelegate.applicationLogger,"Load properties failed "+e.getMessage(),e);
                    }
                }
            }