Merge "Clean up instance checks and casts"
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / actions / SetDlSrcActionSerializer.java
index b2431f9944c61c30d96fc4a73a3374dcbb2a8705..9bad33dd4d7f66fa6b150b6dfd55e186968cee81 100644 (file)
@@ -24,7 +24,8 @@ public class SetDlSrcActionSerializer extends AbstractSetFieldActionSerializer {
                 .setSetField(new SetFieldBuilder()
                         .setEthernetMatch(new EthernetMatchBuilder()
                                 .setEthernetSource(new EthernetSourceBuilder()
-                                        .setAddress(SetDlSrcActionCase.class.cast(input).getSetDlSrcAction().getAddress())
+                                        .setAddress(((SetDlSrcActionCase) input).getSetDlSrcAction()
+                                                .getAddress())
                                         .build())
                                 .build())
                         .build())