aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorBharath Balasubramanian <bharathb@research.att.com>2018-08-31 17:38:46 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-31 17:38:46 +0000
commit60a215503f38974c409c963d3f3a8154be01bdd5 (patch)
treecd720a8ba2b67faa4646b4028f9ef42fd185ce8b /src/main
parent3e8fdc36a0251dc8b6c2a4794ec96f265850a691 (diff)
parent95d0213f85b899e4c74ce91c2002b9b10a69791f (diff)
Merge "jsonSelect.java: Fixed sonar issue"
Diffstat (limited to 'src/main')
-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();