From 6a9abb9d40bf19f26c7d9482d9b91a70619f909a Mon Sep 17 00:00:00 2001 From: burdziak Date: Mon, 8 Jul 2019 15:06:34 +0200 Subject: Fix sonar issues in MusicUtil Change-Id: I644422502f7acaff394224dcf8119c7c0462c9dd Issue-ID: PORTAL-523 Signed-off-by: burdziak --- .../main/java/org/onap/portalapp/music/util/MusicUtil.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ecomp-sdk/epsdk-music/src/main/java/org') diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java index 2e17d0c1..710a65ea 100644 --- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java +++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java @@ -71,17 +71,18 @@ public class MusicUtil { private static final String FAILED_2_READ_PROPERTY_FILE = "Failed to read property file "; private static final String TRUE = "true"; - public static boolean isSessionMetaAttr(String key){ - return sessionAttrNameSet.contains(key); - } - //hide public constructor private MusicUtil() { } + public static boolean isSessionMetaAttr(String key){ + return sessionAttrNameSet.contains(key); + } + @SuppressWarnings("unchecked") - public static T musicRestResponseDataParsing(ResultSet rs, String attributeName) throws Exception{ + public static T musicRestResponseDataParsing(ResultSet rs, String attributeName) + throws IOException, ClassNotFoundException { logger.debug(EELFLoggerDelegate.debugLogger, "musicRestResponseDataParsing: start"); Row row = rs.one(); if(!sessionAttrNameSet.contains(attributeName)){ -- cgit 1.2.3-korg