From e18575f3d457bf46c1aad3c523e68cfe0abd9f0b Mon Sep 17 00:00:00 2001 From: Rodica Sutu Date: Wed, 12 May 2021 10:45:09 +0300 Subject: [PATCH] remove the Jackson dependency (tas one will be picked) (#446) change the mapper to exclude the null value as for NON_DEFAULT values some changes were added on Jackson after 2.8.3 version --- .../rm-automation-community-rest-api/pom.xml | 11 ----------- .../alfresco/rest/rm/community/util/PojoUtility.java | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml index 6a6fa2950d..2a9eff1822 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/pom.xml @@ -10,9 +10,6 @@ 11.35-SNAPSHOT - - 2.7.9.1 - @@ -50,10 +47,6 @@ org.alfresco.tas restapi - - com.fasterxml.jackson.core - jackson-databind - org.alfresco.tas utility @@ -91,9 +84,5 @@ docker-java 3.0.14 - - com.fasterxml.jackson.core - jackson-databind - diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/PojoUtility.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/PojoUtility.java index f7ce46c21c..e52cd12bf4 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/PojoUtility.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/PojoUtility.java @@ -90,8 +90,8 @@ public class PojoUtility mapper.addMixIn(target, mixinSource); } - //include only values that differ from default settings to be included - mapper.setSerializationInclusion(Include.NON_DEFAULT); + //include only non null values + mapper.setSerializationInclusion(Include.NON_NULL); //return the json object try