import java.util.HashMap;
import java.util.Map;
import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.common.Revision;
/**
* NormalizedNodeOutputStreamWriter will be used by distributed datastore to send normalized node in
* then will call
* {@link #leafNode(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier, Object)} twice
* and then, {@link #endNode()} to end container node.
- * <p/>
- * Based on the each node, the node type is also written to the stream, that helps in reconstructing the object,
+ *
+ * <p>Based on the each node, the node type is also written to the stream, that helps in reconstructing the object,
* while reading.
*/
final class NormalizedNodeOutputStreamWriter extends AbstractNormalizedNodeDataOutput {
protected void writeQName(final QName qname) throws IOException {
writeString(qname.getLocalName());
writeString(qname.getNamespace().toString());
- writeString(qname.getFormattedRevision());
+ writeString(qname.getRevision().map(Revision::toString).orElse(null));
}
@Override