X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetVlanId.java;h=fcc71f32d89da12ce27ad333c2d1f7fa8e1e0897;hp=5370648227eb379c746f578e9d6476f4ef45b188;hb=432ddf481f3bb6c297b1353f76a797fc9ef0e454;hpb=8398f3adb544427642694be13abe9c3bc1a4e192 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 5370648227..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,14 +19,15 @@ 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; @@ -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; }