aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-01-11 22:55:38 +0530
committerSandeep J <sandeejh@in.ibm.com>2019-01-11 22:55:47 +0530
commit1eb31aa25cec926c11ef97a2b4dbd1ec8843dba4 (patch)
tree3103b06e3255e88d8a13044159a6ebae0762965b /src
parent366337b206ee8fbc0da8fcabc44ca2f34ccaeab9 (diff)
fixed sonar issue in RestMusicQAPI.java
fixed sonar issue Issue-ID: MUSIC-182 Change-Id: I9b76915a9e34dd4529a9b111e7362c4c301f61ab Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main/java/org/onap/music/rest/RestMusicQAPI.java21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/main/java/org/onap/music/rest/RestMusicQAPI.java b/src/main/java/org/onap/music/rest/RestMusicQAPI.java
index 1f6ec24f..a883534e 100755
--- a/src/main/java/org/onap/music/rest/RestMusicQAPI.java
+++ b/src/main/java/org/onap/music/rest/RestMusicQAPI.java
@@ -1,7 +1,8 @@
/*
* ============LICENSE_START========================================== org.onap.music
* =================================================================== Copyright (c) 2017 AT&T
- * Intellectual Property ===================================================================
+ * Intellectual Property ===================================================================Modifications Copyright (c) 2018 IBM
+ * Intellectual Property =================================================================== *
* 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
*
@@ -62,13 +63,7 @@ import io.swagger.annotations.ApiParam;
public class RestMusicQAPI {
private EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(RestMusicQAPI.class);
- /*
- * private static final String XMINORVERSION = "X-minorVersion"; private static final String
- * XPATCHVERSION = "X-patchVersion"; private static final String NS = "ns"; private static final
- * String USERID = "userId"; private static final String PASSWORD = "password";
- * */
- // private static final String VERSION = "v2";
-
+
/**
*
@@ -294,7 +289,6 @@ public class RestMusicQAPI {
@ApiParam(value = "Table Name", required = true) @PathParam("qname") String tablename,
@Context UriInfo info) {
- //logger.info(EELFLoggerDelegate.errorLogger, "", AppMessages.MISSINGDATA, ErrorSeverity.CRITICAL,
ResponseBuilder response = MusicUtil.buildVersionResponse(version, minorVersion, patchVersion);
if (updateObj.getValues().isEmpty()) {
logger.error(EELFLoggerDelegate.errorLogger, "", AppMessages.MISSINGDATA,
@@ -447,14 +441,7 @@ public class RestMusicQAPI {
@ApiParam(value = "Key Space", required = true) @PathParam("keyspace") String keyspace,
@ApiParam(value = "Table Name", required = true) @PathParam("qname") String tablename,
@Context UriInfo info) throws Exception {
- /*
- * PreparedQueryObject query = new RestMusicDataAPI().selectSpecificQuery(version, minorVersion,
- * patchVersion, aid, ns, userId, password, keyspace, tablename, info, limit); ResultSet results
- */
- /* Map<String ,String> auth = new HashMap<>();
- String userId =auth.get(MusicUtil.USERID);
- String password =auth.get(MusicUtil.PASSWORD);
- */
+
return new RestMusicDataAPI().select(version, minorVersion, patchVersion, aid, ns, authorization, keyspace, tablename, info);// , limit)
}