From cb2fa0c82d2c730da7910bbe7da91ec7b8edba71 Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Wed, 20 Aug 2014 18:54:18 -0700 Subject: [PATCH] Removed unused ObjectMapper which is potentially confusing Change-Id: I5b6f87c79e19c8b9ea7f2f7a30adc3ce4961c29a Signed-off-by: Madhu Venugopal --- .../java/org/opendaylight/ovsdb/northbound/OvsdbRow.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/northbound/src/main/java/org/opendaylight/ovsdb/northbound/OvsdbRow.java b/northbound/src/main/java/org/opendaylight/ovsdb/northbound/OvsdbRow.java index 2b955945a..ca4a56b9f 100644 --- a/northbound/src/main/java/org/opendaylight/ovsdb/northbound/OvsdbRow.java +++ b/northbound/src/main/java/org/opendaylight/ovsdb/northbound/OvsdbRow.java @@ -20,11 +20,8 @@ import org.opendaylight.ovsdb.lib.notation.Row; import org.opendaylight.ovsdb.lib.schema.DatabaseSchema; import org.opendaylight.ovsdb.lib.schema.GenericTableSchema; -import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; @Deprecated @@ -73,11 +70,7 @@ public class OvsdbRow { public static Row getRow(OvsdbClient client, String dbName, String tableName, JsonNode rowJson) throws InterruptedException, ExecutionException, JsonParseException, IOException { DatabaseSchema dbSchema = client.getSchema(dbName).get(); GenericTableSchema schema = dbSchema.table(tableName, GenericTableSchema.class); - ObjectMapper objectMapper = new ObjectMapper(); - objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - objectMapper.setSerializationInclusion(Include.NON_NULL); - Row row = schema.createRow((ObjectNode)rowJson); - return row; + return schema.createRow((ObjectNode)rowJson); } public String getParentUuid() { -- 2.36.6