Clean up instance checks and casts
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / protocol / deserialization / match / Ipv4DestinationEntryDeserializerTest.java
index 5360d05ef2c45f5c5ed1cd6ec54ede1b82702b5e..58c8265ff025d5cbee45e6f2dae4304f58e06221 100644 (file)
@@ -35,7 +35,7 @@ public class Ipv4DestinationEntryDeserializerTest extends AbstractMatchEntryDese
         in.writeBytes(IetfInetUtil.INSTANCE.ipv4AddressBytes(new Ipv4Address(addressParts.next())));
         in.writeBytes(MatchConvertorUtil.extractIpv4Mask(addressParts));
 
-        final Ipv4Match match = Ipv4Match.class.cast(deserialize(in).getLayer3Match());
+        final Ipv4Match match = (Ipv4Match) deserialize(in).getLayer3Match();
 
         assertEquals(address.getValue(), match.getIpv4Destination().getValue());
         assertEquals(0, in.readableBytes());