diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-07-09 15:17:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-09 15:17:07 +0000 |
commit | cc2d5a7fb10681b7a8ab9789c70f0d3338e2e8f6 (patch) | |
tree | 9c2bfad2e3a37fc45c3ed84158dd186c24dd38f6 /ecomp-sdk/epsdk-music | |
parent | 85bcb7ccd7b7cae29364a5999a81523929c98f23 (diff) | |
parent | 6a9abb9d40bf19f26c7d9482d9b91a70619f909a (diff) |
Merge "Fix sonar issues in MusicUtil"
Diffstat (limited to 'ecomp-sdk/epsdk-music')
-rw-r--r-- | ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicUtil.java | 11 |
1 files changed, 6 insertions, 5 deletions
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> T musicRestResponseDataParsing(ResultSet rs, String attributeName) throws Exception{ + public static <T> T musicRestResponseDataParsing(ResultSet rs, String attributeName) + throws IOException, ClassNotFoundException { logger.debug(EELFLoggerDelegate.debugLogger, "musicRestResponseDataParsing: start"); Row row = rs.one(); if(!sessionAttrNameSet.contains(attributeName)){ |