summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-11-14 17:22:39 +0530
committerSandeep Jha <sandeejh@in.ibm.com>2018-11-14 12:30:31 +0000
commited1c9ea4a8e229a8a279749ba3985b1ee6c46435 (patch)
tree89a914cda2557ae9fa90502b162d8a522b5c7a0a /src/main/java/org
parent49a5bf8abc9a1f69695ed1d1b22268871b49eb11 (diff)
removed unused imports and fixed sonar issues
removed unused imports and fixed a couple of sonar issues Issue-ID: MUSIC-183 Change-Id: I26a06bdb136083645182bd02c80a370b9daefc67 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/music/conductor/conditionals/RestMusicConditionalAPI.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/org/onap/music/conductor/conditionals/RestMusicConditionalAPI.java b/src/main/java/org/onap/music/conductor/conditionals/RestMusicConditionalAPI.java
index eb466754..1343628c 100644
--- a/src/main/java/org/onap/music/conductor/conditionals/RestMusicConditionalAPI.java
+++ b/src/main/java/org/onap/music/conductor/conditionals/RestMusicConditionalAPI.java
@@ -4,6 +4,8 @@
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
+ * Modifications Copyright (c) 2018 IBM
+ * ===================================================================
* 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
@@ -37,7 +39,6 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.ResponseBuilder;
import javax.ws.rs.core.Response.Status;
-import org.codehaus.jettison.json.JSONObject;
import org.onap.music.datastore.PreparedQueryObject;
import org.onap.music.eelf.logging.EELFLoggerDelegate;
import org.onap.music.eelf.logging.format.AppMessages;
@@ -49,8 +50,6 @@ import org.onap.music.main.ResultType;
import org.onap.music.main.ReturnType;
import org.onap.music.response.jsonobjects.JsonResponse;
import org.onap.music.rest.RestMusicAdminAPI;
-import org.onap.music.conductor.*;
-
import com.datastax.driver.core.DataType;
import com.datastax.driver.core.TableMetadata;
@@ -126,8 +125,8 @@ public class RestMusicConditionalAPI {
}
Map<String, String> status = new HashMap<>();
- status.put("exists", conditions.get("exists").get("status").toString());
- status.put("nonexists", conditions.get("nonexists").get("status").toString());
+ status.put("exists", conditions.get("exists").get("status"));
+ status.put("nonexists", conditions.get("nonexists").get("status"));
ReturnType out = null;
out = MusicConditional.conditionalInsert(keyspace, tablename, casscadeColumnName, casscadeColumnData,