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=400baaf54049cf4d6159e7c03b7c6e724eaa5aa5;hp=c2c40bfcc8df8b70e9d007e992f16a463b95186e;hpb=8398f3adb544427642694be13abe9c3bc1a4e192;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 c2c40bfcc8..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) { @@ -53,15 +52,19 @@ public class SetDlDst extends Action { @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; }