Sho SHIMIZU
Committed by Gerrit Code Review

Remove unnecessary cast

Change-Id: I66acf110940f8562234461b88d7c97070e0568e4
......@@ -80,7 +80,7 @@ public class DeviceConfiguration implements DeviceProperties {
}
SegmentRouterInfo info = new SegmentRouterInfo();
info.nodeSid = ((SegmentRouterConfig) cfg).getNodeSid();
info.deviceId = ((SegmentRouterConfig) cfg).getDpid();
info.deviceId = cfg.getDpid();
info.mac = MacAddress.valueOf(((
SegmentRouterConfig) cfg).getRouterMac());
String routerIp = ((SegmentRouterConfig) cfg).getRouterIp();
......
......@@ -826,7 +826,7 @@ public class GossipLinkStore
public void handle(ClusterMessage message) {
log.trace("Received link event from peer: {}", message.sender());
InternalLinkEvent event = (InternalLinkEvent) SERIALIZER.decode(message.payload());
InternalLinkEvent event = SERIALIZER.decode(message.payload());
ProviderId providerId = event.providerId();
Timestamped<LinkDescription> linkDescription = event.linkDescription();
......@@ -845,7 +845,7 @@ public class GossipLinkStore
public void handle(ClusterMessage message) {
log.trace("Received link removed event from peer: {}", message.sender());
InternalLinkRemovedEvent event = (InternalLinkRemovedEvent) SERIALIZER.decode(message.payload());
InternalLinkRemovedEvent event = SERIALIZER.decode(message.payload());
LinkKey linkKey = event.linkKey();
Timestamp timestamp = event.timestamp();
......