BUG-5280: move AbstractDataTreeModificationCursor
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / utils / DataTreeModificationOutput.java
index 17d4c4a71d78c11f24910e423cfd309da4cc4f5e..8e19441be73d836f245e8e858ccb2974846d609d 100644 (file)
@@ -13,6 +13,7 @@ import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import javax.xml.stream.XMLStreamException;
+import org.opendaylight.controller.cluster.datastore.util.AbstractDataTreeModificationCursor;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
@@ -49,7 +50,7 @@ public final class DataTreeModificationOutput {
         public void delete(PathArgument child) {
             try {
                 output.write("\nDELETE -> ".getBytes());
-                output.write(next(child).toString().getBytes());
+                output.write(current().node(child).toString().getBytes());
                 output.writeByte('\n');
             } catch(IOException e) {
                 Throwables.propagate(e);
@@ -71,7 +72,7 @@ public final class DataTreeModificationOutput {
                 output.writeByte('\n');
                 output.write(name.getBytes());
                 output.write(" -> ".getBytes());
-                output.write(next(child).toString().getBytes());
+                output.write(current().node(child).toString().getBytes());
                 output.write(": \n".getBytes());
                 NormalizedNodeXMLOutput.toStream(output, data);
                 output.writeByte('\n');