X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetDlDst.java;h=da6dc93943e3ba6450b43b0995ee6458ee0fe7f0;hb=edf5bfcee83c750853253ccfd991ba7000f5f65b;hp=2413c23314b5732c3e5d17cbbb44058835cb3d2d;hpb=e877f7f9e4ed90d2a199aad8f28e46daa4686d4c;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlDst.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlDst.java index 2413c23314..da6dc93943 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlDst.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlDst.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -20,16 +19,16 @@ import org.opendaylight.controller.sal.utils.HexEncode; /** * Set destination datalayer address action - * */ @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetDlDst extends Action { + private static final long serialVersionUID = 1L; private byte[] address; /* Dummy constructor for JAXB */ - private SetDlDst () { + @SuppressWarnings("unused") + private SetDlDst() { } public SetDlDst(byte[] dlAddress) { @@ -45,23 +44,27 @@ public class SetDlDst extends Action { public byte[] getDlAddress() { return address.clone(); } - + @XmlElement(name = "address") public String getDlAddressString() { return HexEncode.bytesToHexString(address); } - + @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; + } SetDlDst other = (SetDlDst) obj; - if (!Arrays.equals(address, other.address)) + if (!Arrays.equals(address, other.address)) { return false; + } return true; }