Fix findbug and checkstyle issues
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / LocRibWriter.java
index 9cc65baf83c89c2b68dc1099c64d97d7621989d1..03b58fc5bfc4ea5b490436e6fcccb0f134a32dd4 100644 (file)
@@ -234,7 +234,8 @@ final class LocRibWriter implements AutoCloseable, TotalPrefixesCounter, TotalPa
         final UnsignedInteger routerId = RouterIds.routerIdForPeerId(peerId);
         final Collection<DataTreeCandidateNode> modifiedRoutes = this.ribSupport.changedRoutes(child);
         for (final DataTreeCandidateNode route : modifiedRoutes) {
-            final PathArgument routeId = this.ribSupport.createRouteKeyPathArgument(route.getIdentifier());
+            final NodeIdentifierWithPredicates routeId = (NodeIdentifierWithPredicates)
+                    this.ribSupport.createRouteKeyPathArgument(route.getIdentifier());
             RouteEntry entry = this.routeEntries.get(routeId);
             final Optional<NormalizedNode<?, ?>> maybeData = route.getDataAfter();
             final Optional<NormalizedNode<?, ?>> maybeDataBefore = route.getDataBefore();