X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetDlSrc.java;h=2b70535ecfa0c1f2eaa5d6030aa373506767af72;hb=405ea7ce68d22bd3d2501857c5253793b581b086;hp=91909993f3422d012003ff4e26c267033f463e49;hpb=8398f3adb544427642694be13abe9c3bc1a4e192;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlSrc.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlSrc.java index 91909993f3..2b70535ecf 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlSrc.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlSrc.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -24,12 +23,13 @@ import org.opendaylight.controller.sal.utils.HexEncode; */ @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetDlSrc extends Action { + private static final long serialVersionUID = 1L; private byte[] address; /* Dummy constructor for JAXB */ - private SetDlSrc () { + @SuppressWarnings("unused") + private SetDlSrc() { } public SetDlSrc(byte[] dlAddress) { @@ -57,15 +57,19 @@ public class SetDlSrc 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; + } SetDlSrc other = (SetDlSrc) obj; - if (!Arrays.equals(address, other.address)) + if (!Arrays.equals(address, other.address)) { return false; + } return true; }