OPNFLWPLUG-1032: Neon-MRI: Bump odlparent, yangtools, mdsal
[openflowplugin.git] / samples / learning-switch / src / main / java / org / opendaylight / openflowplugin / learningswitch / InstanceIdentifierUtils.java
index fa3b3f2d9342481ae324332b1b280671d57f7431..2acc10228bb86ec5e5fe00717d376d1bdea7bfb1 100644 (file)
@@ -77,14 +77,14 @@ public final class InstanceIdentifierUtils {
      * @param tablePath the table path
      */
     public static Short getTableId(final InstanceIdentifier<Table> tablePath) {
-        return tablePath.firstKeyOf(Table.class, TableKey.class).getId();
+        return tablePath.firstKeyOf(Table.class).getId();
     }
 
     /**
      * Extracts NodeConnectorKey from node connector path.
      */
     public static NodeConnectorKey getNodeConnectorKey(final InstanceIdentifier<?> nodeConnectorPath) {
-        return nodeConnectorPath.firstKeyOf(NodeConnector.class, NodeConnectorKey.class);
+        return nodeConnectorPath.firstKeyOf(NodeConnector.class);
     }
 
     public static InstanceIdentifier<NodeConnector> createNodeConnectorPath(final InstanceIdentifier<Node> nodeKey,