Modernize codebase a bit
[bgpcep.git] / bmp / bmp-impl / src / main / java / org / opendaylight / protocol / bmp / impl / app / BmpRouterPeerImpl.java
index 317d933ef1cd75a577b150300d5d33b07939ff0b..26d141fce2bf4b267fdb1729aa1ea71962987f3d 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.protocol.bmp.impl.app;
 
 import static java.util.Objects.requireNonNull;
@@ -75,7 +74,6 @@ import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.DataContaine
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-
 public final class BmpRouterPeerImpl implements BmpRouterPeer {
 
     private static final Logger LOG = LoggerFactory.getLogger(BmpRouterPeerImpl.class);
@@ -302,7 +300,7 @@ public final class BmpRouterPeerImpl implements BmpRouterPeer {
         final PeerHeader peerHeader = peerUp.getPeerHeader();
         final DataContainerNodeBuilder<NodeIdentifierWithPredicates, MapEntryNode> mapEntryBuilder =
                 Builders.mapEntryBuilder()
-                        .withNodeIdentifier(new NodeIdentifierWithPredicates(Peer.QNAME, PEER_ID_QNAME,
+                        .withNodeIdentifier(NodeIdentifierWithPredicates.of(Peer.QNAME, PEER_ID_QNAME,
                                 this.peerId.getValue()))
                         .withChild(ImmutableNodes.leafNode(PEER_ID_QNAME, this.peerId.getValue()))
                         .withChild(ImmutableNodes.leafNode(PEER_TYPE_QNAME,