X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetVlanId.java;h=fcc71f32d89da12ce27ad333c2d1f7fa8e1e0897;hb=edf5bfcee83c750853253ccfd991ba7000f5f65b;hp=b1e4748bc3b4f9dd1426cd4958af319eabda5e23;hpb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanId.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanId.java index b1e4748bc3..fcc71f32d8 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanId.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetVlanId.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -20,15 +19,16 @@ import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetVlanId extends Action { - @XmlElement + private static final long serialVersionUID = 1L; + @XmlElement private int vlanId; - private SetVlanId() { - - } - + @SuppressWarnings("unused") + private SetVlanId() { + + } + public SetVlanId(int vlanId) { type = ActionType.SET_VLAN_ID; this.vlanId = vlanId; @@ -46,15 +46,19 @@ public class SetVlanId 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; + } SetVlanId other = (SetVlanId) obj; - if (vlanId != other.vlanId) + if (vlanId != other.vlanId) { return false; + } return true; }