Clean up instance checks and casts
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / services / singlelayer / SingleLayerFlowServiceTest.java
index f563f4aed95ccb2ba069f3c4e538ab4feb1b7c37..534538d6d2aa8cad912fbf23ac844f253c85263f 100644 (file)
@@ -38,7 +38,7 @@ public class SingleLayerFlowServiceTest extends ServiceMocking {
         final OfHeader ofHeader = service.buildRequest(DUMMY_XID, input);
         assertEquals(FlowMessage.class, ofHeader.getImplementedInterface());
 
-        final FlowMessage result = FlowMessage.class.cast(ofHeader);
+        final FlowMessage result = (FlowMessage) ofHeader;
 
         assertEquals(FlowModCommand.OFPFCADD, result.getCommand());
         assertEquals(TABLE_ID, result.getTableId().shortValue());