Remove remaining Jackson 61/78561/1
authorsebdet <sebastien.determe@intl.att.com>
Fri, 15 Feb 2019 14:28:26 +0000 (15:28 +0100)
committersebdet <sebastien.determe@intl.att.com>
Fri, 15 Feb 2019 14:28:26 +0000 (15:28 +0100)
Remove jackson import as jackson shoul dbe removed

Issue-ID: CLAMP-292
Change-Id: I5d8b71efab64aec688eb4a5e4abe09a652f12966
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
src/main/java/org/onap/clamp/clds/client/DcaeInventoryServices.java
src/main/java/org/onap/clamp/clds/model/CldsDictionary.java
src/main/java/org/onap/clamp/clds/model/CldsDictionaryItem.java
src/main/java/org/onap/clamp/clds/model/dcae/DcaeInventoryResponse.java

index 7702307..e5ef3c6 100644 (file)
@@ -26,7 +26,6 @@ package org.onap.clamp.clds.client;
 \r
 import com.att.eelf.configuration.EELFLogger;\r
 import com.att.eelf.configuration.EELFManager;\r
-import com.fasterxml.jackson.core.JsonProcessingException;\r
 \r
 import java.io.IOException;\r
 import java.util.Date;\r
@@ -83,7 +82,7 @@ public class DcaeInventoryServices {
      * @throws ParseException\r
      *         In case of DCAE Json parse exception\r
      */\r
-    public void setEventInventory(CldsModel cldsModel, String userId) throws ParseException, InterruptedException {\r
+    public void setEventInventory(CldsModel cldsModel, String userId) throws InterruptedException {\r
         String artifactName = cldsModel.getControlName();\r
         DcaeEvent dcaeEvent = new DcaeEvent();\r
         DcaeInventoryResponse dcaeResponse = null;\r
@@ -109,7 +108,7 @@ public class DcaeInventoryServices {
             dcaeEvent.setArtifactName(artifactName);\r
             dcaeEvent.setEvent(DcaeEvent.EVENT_DISTRIBUTION);\r
             LoggingUtils.setResponseContext("0", "Set inventory success", this.getClass().getName());\r
-        } catch (JsonProcessingException e) {\r
+        } catch (ParseException e) {\r
             LoggingUtils.setResponseContext("900", "Set inventory failed", this.getClass().getName());\r
             LoggingUtils.setErrorContext("900", "Set inventory error");\r
             logger.error("Error during JSON decoding", e);\r
@@ -154,8 +153,7 @@ public class DcaeInventoryServices {
         return totalCount.intValue();\r
     }\r
 \r
-    private DcaeInventoryResponse getItemsFromDcaeInventoryResponse(String responseStr)\r
-        throws ParseException {\r
+    private DcaeInventoryResponse getItemsFromDcaeInventoryResponse(String responseStr) throws ParseException {\r
         JSONParser parser = new JSONParser();\r
         Object obj0 = parser.parse(responseStr);\r
         JSONObject jsonObj = (JSONObject) obj0;\r
index a9b003d..73f9590 100644 (file)
@@ -23,9 +23,6 @@
 
 package org.onap.clamp.clds.model;
 
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-
 import java.util.ArrayList;
 import java.util.List;
 
@@ -34,7 +31,7 @@ import org.onap.clamp.clds.dao.CldsDao;
 /**
  * Represents a CLDS Dictionary.
  */
-@JsonInclude(Include.NON_NULL)
+
 public class CldsDictionary {
 
     private String dictionaryId;
index 87ba9fe..cb051b8 100644 (file)
@@ -23,9 +23,6 @@
 
 package org.onap.clamp.clds.model;
 
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-
 import java.util.List;
 
 import org.onap.clamp.clds.dao.CldsDao;
@@ -33,7 +30,6 @@ import org.onap.clamp.clds.dao.CldsDao;
 /**
  * Represents a CLDS Dictionary Item.
  */
-@JsonInclude(Include.NON_NULL)
 public class CldsDictionaryItem {
 
     private String dictElementId;
index 3b1dffa..74582a8 100644 (file)
  * limitations under the License.
  * ============LICENSE_END============================================
  * ===================================================================
- * 
+ *
  */
 
 package org.onap.clamp.clds.model.dcae;
 
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-
 /**
  * This class maps the DCAE inventory answer to a nice pojo.
  */
-@JsonIgnoreProperties(ignoreUnknown = true)
 public class DcaeInventoryResponse {
 
     private String typeName;