X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetDlType.java;h=225c4f7821895ff7cbabd35387b44aaac0c1290a;hb=0fe04fdf4271be914d43d35231c1706ec34b05f6;hp=d15424ee15b9aabf9e0a493ce4a396a53c12fef1;hpb=541d0a36997f292bb037a2199463431eee538358;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java index d15424ee15..225c4f7821 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -22,13 +21,14 @@ import org.opendaylight.controller.sal.utils.EtherTypes; @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetDlType extends Action { - @XmlElement + private static final long serialVersionUID = 1L; + @XmlElement private int dlType; /* Dummy constructor for JAXB */ - private SetDlType () { + @SuppressWarnings("unused") + private SetDlType() { } public SetDlType(int dlType) { @@ -54,15 +54,19 @@ public class SetDlType 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; + } SetDlType other = (SetDlType) obj; - if (dlType != other.dlType) + if (dlType != other.dlType) { return false; + } return true; }