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=d542617f3486541cf9937009fb6aa1e3f2c9f0e2;hp=62dec0cd58198dfcbfa0b77e89a28ab9b97e1d88;hpb=eb9e1983a0fce7e4a381eff33e40cae957cddf53;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 62dec0cd58..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; }