Removed unused ObjectMapper which is potentially confusing 77/10277/2
authorMadhu Venugopal <mavenugo@gmail.com>
Thu, 21 Aug 2014 01:54:18 +0000 (18:54 -0700)
committerMadhu Venugopal <mavenugo@gmail.com>
Tue, 26 Aug 2014 12:53:25 +0000 (05:53 -0700)
Change-Id: I5b6f87c79e19c8b9ea7f2f7a30adc3ce4961c29a
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
northbound/src/main/java/org/opendaylight/ovsdb/northbound/OvsdbRow.java

index 2b955945ad2dc7ea7c65da45996193e3ad980a34..ca4a56b9f259ff2eaad277ee0d9fd44906231d87 100644 (file)
@@ -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<GenericTableSchema> 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<GenericTableSchema> row = schema.createRow((ObjectNode)rowJson);
-        return row;
+        return schema.createRow((ObjectNode)rowJson);
     }
 
     public String getParentUuid() {