summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-31 22:10:59 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-08-31 22:11:08 +0530
commit95d0213f85b899e4c74ce91c2002b9b10a69791f (patch)
treecb93f85708f98f4fde2f37420acbb0d744faf0cd
parent751f3e5b00130c4e04d42f917fd921dccb7f36cf (diff)
jsonSelect.java: Fixed sonar issue
Fixed sonar issue, either log or rethrow this error Issue-ID: MUSIC-116 Change-Id: Iace6b3251a2b3b60cfd8ce99d6a0ed8ecf80fe02 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java b/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java
index 64bc3887..ef56c5de 100644
--- a/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java
+++ b/src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java
@@ -27,13 +27,13 @@ import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
-
+import org.apache.log4j.Logger;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class JsonSelect implements Serializable {
private Map<String, String> consistencyInfo;
-
+ static Logger logger = Logger.getLogger(JsonSelect.class.getName());
public Map<String, String> getConsistencyInfo() {
return consistencyInfo;
@@ -51,6 +51,7 @@ public class JsonSelect implements Serializable {
out.writeObject(this);
} catch (IOException e) {
// TODO Auto-generated catch block
+ logger.error("Error", e);
e.printStackTrace();
}
return bos.toByteArray();