X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetNwDst.java;h=db19cd6520879e7da302b43a1697172691f4248a;hb=c7551f594c34504fffa0055d3360132577938b38;hp=bccca3f1f236b99aafee3a77d8803aad9111a284;hpb=e877f7f9e4ed90d2a199aad8f28e46daa4686d4c;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java index bccca3f1f2..db19cd6520 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -22,12 +21,13 @@ import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetNwDst extends Action { + private static final long serialVersionUID = 1L; InetAddress address; /* Dummy constructor for JAXB */ - private SetNwDst () { + @SuppressWarnings("unused") + private SetNwDst() { } public SetNwDst(InetAddress address) { @@ -38,31 +38,36 @@ public class SetNwDst extends Action { /** * Returns the network address this action will set * - * @return InetAddress + * @return InetAddress */ public InetAddress getAddress() { return address; } - - @XmlElement (name="address") + + @XmlElement(name = "address") public String getAddressAsString() { - return address.getHostAddress(); + return address.getHostAddress(); } @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; + } SetNwDst other = (SetNwDst) obj; if (address == null) { - if (other.address != null) + if (other.address != null) { return false; - } else if (!address.equals(other.address)) + } + } else if (!address.equals(other.address)) { return false; + } return true; }