import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
* @param schemaHandler Schema context handler.
* @return InstanceIdentifier of Location leaf.
*/
- private static InstanceIdentifierContext<?> prepareIIDSubsStreamOutput(final SchemaContextHandler schemaHandler) {
+ private static InstanceIdentifierContext prepareIIDSubsStreamOutput(final SchemaContextHandler schemaHandler) {
final Optional<Module> module = schemaHandler.get().findModule(NOTIFI_QNAME.getModule());
checkState(module.isPresent());
final DataSchemaNode notify = module.get().dataChildByName(NOTIFI_QNAME);
final DataSchemaNode location = ((ContainerSchemaNode) notify).dataChildByName(LOCATION_QNAME);
checkState(location != null, "Missing location");
- return new InstanceIdentifierContext<SchemaNode>(LOCATION_PATH, location, null, schemaHandler.get());
+ return new InstanceIdentifierContext(LOCATION_PATH, location, null, schemaHandler.get());
}
/**