X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fhosttracker%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2FhostAware%2FHostNodeConnector.java;h=f3f86a56e2b16f70441a0794a88b957f4fae9015;hp=5d52e24c16f3dd82e998459f328689b64b8a6944;hb=c97615f9dcd902079b828eebaafb420a0de61193;hpb=6e28a7e7bb41088e8a7492523e61ed7b90bff4c2 diff --git a/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/HostNodeConnector.java b/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/HostNodeConnector.java index 5d52e24c16..f3f86a56e2 100644 --- a/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/HostNodeConnector.java +++ b/opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/HostNodeConnector.java @@ -8,7 +8,6 @@ package org.opendaylight.controller.hosttracker.hostAware; -import java.io.Serializable; import java.net.Inet4Address; import java.net.Inet6Address; import java.net.InetAddress; @@ -27,7 +26,7 @@ import org.opendaylight.controller.sal.packet.address.EthernetAddress; @XmlRootElement(name = "host") @XmlAccessorType(XmlAccessType.NONE) -public class HostNodeConnector extends Host implements Serializable { +public class HostNodeConnector extends Host { private static final long serialVersionUID = 1L; @XmlElement private NodeConnector nodeConnector; @@ -136,22 +135,29 @@ public class HostNodeConnector extends Host implements Serializable { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (!super.equals(obj)) + } + if (!super.equals(obj)) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } HostNodeConnector other = (HostNodeConnector) obj; if (nodeConnector == null) { - if (other.nodeConnector != null) + if (other.nodeConnector != null) { return false; - } else if (!nodeConnector.equals(other.nodeConnector)) + } + } else if (!nodeConnector.equals(other.nodeConnector)) { return false; - if (staticHost != other.staticHost) + } + if (staticHost != other.staticHost) { return false; - if (vlan != other.vlan) + } + if (vlan != other.vlan) { return false; + } return true; } @@ -167,8 +173,9 @@ public class HostNodeConnector extends Host implements Serializable { EthernetAddress e = (EthernetAddress) getDataLayerAddress(); macaddr = e.getValue(); } - if (macaddr == null) + if (macaddr == null) { return false; + } return !Arrays.equals(emptyArray, macaddr); }