SonarBugFix:GenericTableSchema 97/14797/3
authorBindya Narayan <bindya.narayan@intel.com>
Wed, 4 Feb 2015 00:22:21 +0000 (16:22 -0800)
committerSam Hague <shague@redhat.com>
Fri, 6 Feb 2015 03:10:34 +0000 (03:10 +0000)
Signed-off-by: Bindya Narayan <bindya.narayan@intel.com>
library/src/main/java/org/opendaylight/ovsdb/lib/schema/GenericTableSchema.java

index 8118a8b0e0c2e0b84cceb45005f48e6c4226162a..e8934ea4523032764d28923d53033434641eb395 100644 (file)
@@ -50,30 +50,4 @@ public class GenericTableSchema extends TableSchema<GenericTableSchema> {
         this.setColumns(columns);
         return this;
     }
-
-//    public TableUpdate<GenericTableSchema> updatesFromJson(JsonNode value) {
-//        ObjectNode new_ = (ObjectNode) value.get("new");
-//        ObjectNode old = (ObjectNode) value.get("new");
-//
-//        Row<GenericTableSchema> newRow = createRow(new_);
-//        Row<GenericTableSchema> oldRow = createRow(old);
-//
-//        TableUpdate<GenericTableSchema> tableUpdate = new TableUpdate<GenericTableSchema>();
-//        tableUpdate.setNew(newRow);
-//        tableUpdate.setNew(oldRow);
-//
-//
-//        return null;
-//    }
-//
-//    protected Row<GenericTableSchema> createRow(ObjectNode rowNode) {
-//        List<Column<GenericTableSchema, ?>> columns = Lists.newArrayList();
-//        for (Iterator<Map.Entry<String, JsonNode>> iter = rowNode.fields(); iter.hasNext();) {
-//            Map.Entry<String, JsonNode> next = iter.next();
-//            ColumnSchema schema = column(next.getKey());
-//            Object o = schema.valueFromJson(next.getValue());
-//            columns.add(new Column(schema, o));
-//        }
-//        return new Row<>(columns);
-//    }
 }