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=d542617f3486541cf9937009fb6aa1e3f2c9f0e2;hp=f76000c64948d42849fd4e5c1cde568e373dcf4b;hpb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;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 f76000c649..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; }