From: Madhu Venugopal Date: Thu, 21 Aug 2014 01:54:18 +0000 (-0700) Subject: Removed unused ObjectMapper which is potentially confusing X-Git-Tag: release/helium~113^2~1 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=cb2fa0c82d2c730da7910bbe7da91ec7b8edba71;p=ovsdb.git Removed unused ObjectMapper which is potentially confusing Change-Id: I5b6f87c79e19c8b9ea7f2f7a30adc3ce4961c29a Signed-off-by: Madhu Venugopal --- 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() {