X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Faction%2FSetNwTos.java;h=e5a85db638d73c7544969e9bb3b5ec77a1df3be3;hb=42b0a219eb651783d50caedbfec0718cd4d9558c;hp=69fdd89ffb4cfb10f12ae899498c007454511edf;hpb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwTos.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwTos.java index 69fdd89ffb..e5a85db638 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwTos.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwTos.java @@ -1,4 +1,3 @@ - /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * @@ -19,13 +18,14 @@ import javax.xml.bind.annotation.XmlRootElement; */ @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) - public class SetNwTos extends Action { - @XmlElement + private static final long serialVersionUID = 1L; + @XmlElement private int tos; /* Dummy constructor for JAXB */ - private SetNwTos () { + @SuppressWarnings("unused") + private SetNwTos() { } public SetNwTos(int tos) { @@ -45,15 +45,19 @@ public class SetNwTos 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; + } SetNwTos other = (SetNwTos) obj; - if (tos != other.tos) + if (tos != other.tos) { return false; + } return true; }