Committed by
Gerrit Code Review
Remove unnecessary cast
Change-Id: I66acf110940f8562234461b88d7c97070e0568e4
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -80,7 +80,7 @@ public class DeviceConfiguration implements DeviceProperties { | ... | @@ -80,7 +80,7 @@ public class DeviceConfiguration implements DeviceProperties { |
80 | } | 80 | } |
81 | SegmentRouterInfo info = new SegmentRouterInfo(); | 81 | SegmentRouterInfo info = new SegmentRouterInfo(); |
82 | info.nodeSid = ((SegmentRouterConfig) cfg).getNodeSid(); | 82 | info.nodeSid = ((SegmentRouterConfig) cfg).getNodeSid(); |
83 | - info.deviceId = ((SegmentRouterConfig) cfg).getDpid(); | 83 | + info.deviceId = cfg.getDpid(); |
84 | info.mac = MacAddress.valueOf((( | 84 | info.mac = MacAddress.valueOf((( |
85 | SegmentRouterConfig) cfg).getRouterMac()); | 85 | SegmentRouterConfig) cfg).getRouterMac()); |
86 | String routerIp = ((SegmentRouterConfig) cfg).getRouterIp(); | 86 | String routerIp = ((SegmentRouterConfig) cfg).getRouterIp(); | ... | ... |
... | @@ -826,7 +826,7 @@ public class GossipLinkStore | ... | @@ -826,7 +826,7 @@ public class GossipLinkStore |
826 | public void handle(ClusterMessage message) { | 826 | public void handle(ClusterMessage message) { |
827 | 827 | ||
828 | log.trace("Received link event from peer: {}", message.sender()); | 828 | log.trace("Received link event from peer: {}", message.sender()); |
829 | - InternalLinkEvent event = (InternalLinkEvent) SERIALIZER.decode(message.payload()); | 829 | + InternalLinkEvent event = SERIALIZER.decode(message.payload()); |
830 | 830 | ||
831 | ProviderId providerId = event.providerId(); | 831 | ProviderId providerId = event.providerId(); |
832 | Timestamped<LinkDescription> linkDescription = event.linkDescription(); | 832 | Timestamped<LinkDescription> linkDescription = event.linkDescription(); |
... | @@ -845,7 +845,7 @@ public class GossipLinkStore | ... | @@ -845,7 +845,7 @@ public class GossipLinkStore |
845 | public void handle(ClusterMessage message) { | 845 | public void handle(ClusterMessage message) { |
846 | 846 | ||
847 | log.trace("Received link removed event from peer: {}", message.sender()); | 847 | log.trace("Received link removed event from peer: {}", message.sender()); |
848 | - InternalLinkRemovedEvent event = (InternalLinkRemovedEvent) SERIALIZER.decode(message.payload()); | 848 | + InternalLinkRemovedEvent event = SERIALIZER.decode(message.payload()); |
849 | 849 | ||
850 | LinkKey linkKey = event.linkKey(); | 850 | LinkKey linkKey = event.linkKey(); |
851 | Timestamp timestamp = event.timestamp(); | 851 | Timestamp timestamp = event.timestamp(); | ... | ... |
-
Please register or login to post a comment