From 95d0213f85b899e4c74ce91c2002b9b10a69791f Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 31 Aug 2018 22:10:59 +0530 Subject: 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 --- src/main/java/org/onap/music/datastore/jsonobjects/JsonSelect.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 consistencyInfo; - + static Logger logger = Logger.getLogger(JsonSelect.class.getName()); public Map 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(); -- cgit 1.2.3-korg