Clean up instance checks and casts
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / actions / SetNwTosActionSerializer.java
index edce954f1441759e3ed314ac09659909a9fd2c39..7b0199944ee59c223b4151190036644f14c8c412 100644 (file)
@@ -25,7 +25,7 @@ public class SetNwTosActionSerializer extends AbstractSetFieldActionSerializer {
                 .setSetField(new SetFieldBuilder()
                         .setIpMatch(new IpMatchBuilder()
                                 .setIpDscp(new Dscp(
-                                        ActionUtil.tosToDscp(SetNwTosActionCase.class.cast(input)
+                                        ActionUtil.tosToDscp(((SetNwTosActionCase) input)
                                                 .getSetNwTosAction().getTos().shortValue())))
                                 .build())
                         .build())