X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetVlanCfi.java;h=0c90fb41fc97e185dc3ff56081f488f4186477aa;hb=432ddf481f3bb6c297b1353f76a797fc9ef0e454;hp=fc3d0a60ef2a742a3929f8d6f09490db2f3511ab;hpb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanCfi.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanCfi.java index fc3d0a60ef..0c90fb41fc 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanCfi.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanCfi.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -20,13 +19,14 @@ import javax.xml.bind.annotation.XmlRootElement; */ @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetVlanCfi extends Action { - @XmlElement + private static final long serialVersionUID = 1L; + @XmlElement private int cfi; /* Dummy constructor for JAXB */ - private SetVlanCfi () { + @SuppressWarnings("unused") + private SetVlanCfi() { } public SetVlanCfi(int cfi) { @@ -37,6 +37,7 @@ public class SetVlanCfi extends Action { /** * Returns the 802.1q CFI value that this action will set + * * @return */ public int getCfi() { @@ -45,15 +46,19 @@ public class SetVlanCfi 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; + } SetVlanCfi other = (SetVlanCfi) obj; - if (cfi != other.cfi) + if (cfi != other.cfi) { return false; + } return true; }