From: Robert Varga Date: Wed, 5 Jun 2019 07:28:12 +0000 (+0200) Subject: Update SerializationUtils method X-Git-Tag: release/sodium~42 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=5dbac2d192db134bee0e261e7608e12a5a95d3f3;p=netconf.git Update SerializationUtils method SerializationUtils changed API, this updates our use of it. Change-Id: Ie6c15b005cbc6437f88c9c414cd6f2cca54bb858 Signed-off-by: Robert Varga --- diff --git a/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/NormalizedNodeMessage.java b/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/NormalizedNodeMessage.java index 62690ea625..3fdb544dd5 100644 --- a/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/NormalizedNodeMessage.java +++ b/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/messages/NormalizedNodeMessage.java @@ -9,6 +9,7 @@ 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; @@ -21,8 +22,8 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; 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 @@ -42,8 +43,8 @@ public class NormalizedNodeMessage implements Externalizable { } @Override - public void writeExternal(final ObjectOutput out) { - SerializationUtils.serializePathAndNode(getIdentifier(), node, out); + public void writeExternal(final ObjectOutput out) throws IOException { + SerializationUtils.writeNodeAndPath(out, getIdentifier(), node); } @Override