import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeContainerBuilder;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableUnkeyedListEntryNodeBuilder;
+import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableUnkeyedListNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
final class ListModificationStrategy extends SchemaAwareApplyOperation<ListSchemaNode> {
final MutableTreeNode mutable = newValueMeta.mutable();
mutable.setSubtreeVersion(version);
- @SuppressWarnings("rawtypes")
- final NormalizedNodeContainerBuilder dataBuilder =
- ImmutableUnkeyedListEntryNodeBuilder.create((UnkeyedListEntryNode) newValue);
-
- return mutateChildren(mutable, dataBuilder, version, modification.getChildren());
+ return mutateChildren(mutable, ImmutableUnkeyedListNodeBuilder.create((UnkeyedListNode) newValue), version,
+ modification.getChildren());
}
/**