Clean up use of deprecated methods
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / datastore / multipart / TableFeaturesMultipartWriter.java
index 89d21546e2c731260e1b477b45bedafa7222bf60..698450ab0fad29d0b5c84735d01854190c8f9a5f 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.openflowplugin.impl.datastore.multipart;
 
 import org.opendaylight.openflowplugin.api.openflow.device.TxFacade;
@@ -13,7 +12,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Fl
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.Table;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.TableBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.TableKey;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.FlowTableStatisticsData;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.FlowTableStatisticsDataBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TableFeatures;
@@ -50,11 +48,9 @@ public class TableFeaturesMultipartWriter extends AbstractMultipartWriter<TableF
                         .child(Table.class, new TableKey(stat.getTableId())),
                     new TableBuilder()
                         .setId(stat.getTableId())
-                        .addAugmentation(FlowTableStatisticsData.class, new FlowTableStatisticsDataBuilder()
-                            .build())
+                        .addAugmentation(new FlowTableStatisticsDataBuilder().build())
                         .build(),
                     withParents);
             });
     }
-
 }