SerializationUtils changed API, this updates our use of it.
Change-Id: Ie6c15b005cbc6437f88c9c414cd6f2cca54bb858
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
package org.opendaylight.netconf.topology.singleton.messages;
import java.io.Externalizable;
package org.opendaylight.netconf.topology.singleton.messages;
import java.io.Externalizable;
+import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.opendaylight.controller.cluster.datastore.node.utils.stream.SerializationUtils;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.opendaylight.controller.cluster.datastore.node.utils.stream.SerializationUtils;
public class NormalizedNodeMessage implements Externalizable {
private static final long serialVersionUID = 1L;
public class NormalizedNodeMessage implements Externalizable {
private static final long serialVersionUID = 1L;
- private YangInstanceIdentifier identifier = null;
- private NormalizedNode<?, ?> node = null;
+ private YangInstanceIdentifier identifier;
+ private NormalizedNode<?, ?> node;
public NormalizedNodeMessage() {
// empty constructor needed for Externalizable
public NormalizedNodeMessage() {
// empty constructor needed for Externalizable
- public void writeExternal(final ObjectOutput out) {
- SerializationUtils.serializePathAndNode(getIdentifier(), node, out);
+ public void writeExternal(final ObjectOutput out) throws IOException {
+ SerializationUtils.writeNodeAndPath(out, getIdentifier(), node);